Jump to content
MakeWebGames

KyleMassacre

Members
  • Posts

    2,921
  • Joined

  • Last visited

  • Days Won

    48

Everything posted by KyleMassacre

  1. I'm going to be a bit honest here and say the default PVP combat module is really pointless, what does it do? If I remember correctly the module was initially built for PVC (player vs. comp) and Alain was gracious enough to provide a PVP portion to it. So what you can do is just create your own module like my mugging one and that kind of over rides the default one and disable the link to the current combat
  2. You can allow for players to not be attacked while offline and that will eliminate them logging in not knowing what happened :p Alain and I "kind of" talked about the personal log when I created a module and made my own function for it to add a player id to send to but I think I forgot to let him know that it may be a good change to be able to add an id in there to send it to. You can add in there a message to be sent to the player if they lose in the comabt function
  3. This may sound dumb but I'm going to start from step 1. Do you have IPN set up with paypal?
  4. Well to each their own. I don't ever need to request a cookie for anything
  5. I think it would have to do with what your trying to perform. I will admit I have never used $_REQUEST in anything I have created and I usually only use post on forms and get when I'm trying to you know.... get a query string
  6. Isn't this the same script you are posting about in another thread? I'm going to go confirm ill be back Its confirmed so I'm locking this one
  7. I would also agree here as well besides the fact its using mres on EVERYTHING 1. Point being??? 2. What's the licensing associated with this because I think some licenses allow for modifications to the script and sometimes when that's done it technically isn't part of that engine anymore. 3. Kind of along the lines of point #2 I really don't see anything wrong with him converting source code to another engine regardless of how he got but I also don't condone using illegal scripts and that's a pet peeve of mine. Is it illegal to convert scripts over from one engine to another? That depends I guess, but he has it, likes it, and wants to use it so in my opinion its cool. But like I said before rewrite it completely cause then it becomes your interpretation and therefor becomes yours. I could be wrong with some legalities here so they are my opinion and interpretation so I'm not going to sit here and argue those. Back to the topic: Is there anyway you can get us the exact error cause it will make troubleshooting a tab bit easier cause all you have stated was that the query was empty? Do you happen to know what query its referring to?
  8. well thanks for the heads up lol. Since apparently this issue is solved so ill close it and if you need it opened again for any reason then it shall be reopened
  9. KyleMassacre

    Crons

    lately when I have been developing particularly small stuff I tend to stay away from crons and use timestamps. But I only use timestamps if its a simple check and maybe delete or update a row based on a user at a time. but I can go both ways on it I guess, it just all depends.
  10. I think it is known that this is in fact mccodes and not registered. @op you did report it to mccodes.com right? that's all you needed to do so when a member of their team gets the notification then they will do what they do. I'm going to lock this thread before it gets out of hand with stuff
  11. How far through the script is it executing? I'm not too familiar with grpg but what is the $cp_user? to me it looks like you can get rid of that unless it serves another purpose. Try using like print_r, var_dump or whatever and see what's happening there
  12. you downloaded the file I left for you correct?
  13. well I had him keep the original class for now because of gaps like this but here is the class he's using https://github.com/vjeux/MysqliWrapper/blob/master/src/mysqli-wrapper.php
  14. or just format it while coding it :p
  15. the class is still a work in progress ;) Atleast his db execution queries are binded properly using a mysqli class for now so he just needs to incorporate a fetch function for his queries
  16. Its right Ian, he is using another class. But I think I remember him saying that he instantiated the class towards the bottom of his page and I didn't pay attention then but Legaci, call your new class the dbWrapper towards the top of your global func file
  17. Since that class isn't a standard mc code class a lot of people won't know what your talking about but you have in the us.=? so remove the "="
  18. Anytime. Cant wait to see what you come up with
  19. i believe that every <a> you use will have the security token assigned to it doesnt it? if not try to create something with the LinkButton()
  20. ehhh, I see it as a mini wiki
  21. I honestly haven't messed with the wiki much but as far as I can tell yes. You can if it isn't yet but wrap it in PrettyMessage possibly?
  22. Here you go for now until Alain can see whats up. Just remember that when uploading this way you may have to manually upload the sqls. player_rating.nwp
  23. Yeah it took me a minute to figure out how to dial in the user variables. But please do post if you have any questions ill do my best to help when I can
  24. Anytime. Maybe on my blog I don't use I can set up some random stuff with NWE in there like little tuts or something
  25. ill have a go   if(isset($_POST["orangeQty"]) + 0) { //To make things easier on the eyes I will just make things its own variable //For get user var @param1 is a constant which is the user variable name, @param2= A useridn if null it returns $userId by default $oranges = GetUserVariable(orange); //Just for the beck of it I will demonstrate the config value, @param1=value name @param2=module name $cost = GetConfigValue("orangeCost","thisModule"); //This is just to make the deduction of money easier $updateCurrency = $_POST["orangeQty"] * $cost; //See how much easier that is $userStats["!Currency"]->value -= $updateCurrency; //Now lets give the player his new orange amount. @param1 is a constant for the user variable name, @param2 will be what you are going to set param1 to, and param3 is just the same and get user variable param2 which is a userid for the user you are working with SetUserVariable(orange,$oranges+$_POST["orangeQty"]); } TableHeader("We are going to buy some Oranges"); echo "<table>"; echo "<form method='post' name='buyOrange"'>"; echo "<tr><td><b>How Many Oranges?:</b></td>"; echo "<td><input type ='text' name = 'orangeQty' value = '1' /></td></tr>"; echo "</form>"; echo "</table>"; TableFooter(); ButtonArea(); SubmitButton("Buy Orange","buyOrange"); EndButtonArea(); Pretty simple huh? Good luck ;)
×
×
  • Create New...