-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
if my count is correct I see 14 columns and 12 things being inserted and looks to me another error (your original) is your success crystals. so take a look in that general location
-
If your going to use !Currency it goes with Translate () as a quicker alternative to assigning it to a var or you could do: $currency = Translate("!Currency); . Maybe I should add to my blogs about the Translate () func and all its powers Sorry I went off topic :p Continue on
-
The !Currency needs to be wrapped in Translate (). I believe its case sensitive as well //assuming you lose double the * 2 if ($UserStat["!Currency"]->value < (post["key"]*2)) ErrorMessage ("blah"); return; Should fix the money issue. Grammer should be straight forward
-
Yep. You would need an IPN like with paypal. Something like: Check status of payment; Check currency used (so they don't trick you with conversion rates); If status is good check the transaction id (if the same number exist then they are trying to cheat payment auth.); Grab al the parameters you set that the place like paypal sends back; Credit the item and do whatever else you need to do; else: DENIED;
-
My update is: NOPE, no updates. still on the drawing board
-
ahh I think the problem would be the fact that your query for health_current is a little off (line 26). for starters you are "querying" health from login but you don't have a where condition set in place i.e. a userid of the current logged in player. now I haven't really looked too much into GL to know what they use like a session or predefined variable so look more into that. That was your first problem. Second problem is your not atcually querying your database (mysql*_query () for your health_current variable you defined and fetched it. if memory serves me correctly you can just grab the players current health from safe.php. I think if you look into those two things you should be golden.
-
correct! take nwe or panther :p for example. they are basically ran of an index file for the most part, they just include $_GET["module_name"]/index.php if that's what you mean ;)
-
I will agree here with MTG abs ((int) ) is decent enough ensuring your getting an absolute value of an (int). What Alain says/does a lot of the times instead of utilizing some functions installed in php is something along the lines of: $_GET["int"] + 0; This is because for 1. its pretty simple to do instead of typcasting ints because you will always get an integer. 2. sometimes and I mean sometimes maybe you want or need a negative. abs () will not allow a negative value to be returned since it converts it to absolute. But just like everything there is a time and place for what to use. for example ctype doesn't allow for strings or negative numbers where as Alains example will allow for both $int ="-33blah"; echo $int +0; //returns (int) -33 So ensure you use what your system needs.
-
This has been sent in for review, changes: Fixed a typo error Added a button to players profiles for easy add to the list
-
Voting system - NWE
KyleMassacre replied to KyleMassacre's topic in Paid modules (requests or offers)
I plan to submit an update to this one with fixed SQLs but I wanted to ask Alain if I can submit my module under the same rev or do I need to rev it up in order to submit? Also the same question applies to my clan donate module -
Weekly Lottery [NWE]
KyleMassacre replied to KyleMassacre's topic in Free Modules (Requests or Offers)
I submitted an update (Not with illusions updates :p) maybe we can get together and make it look like that. This update just fixed the bug with the cron throwing an error out on login or when the cron actually ran -
I think that has to do with the fact that the users table isnt updating the fact that the player is on/offline. if you view their profile it should say the same as the friends module
-
not a bad idea to piss players off ;) I like it and should be fairly easy to do
-
ahh I think your right. stupid me :o
-
My todo list: New profiles (thinking about 3 vertical columns and maybe 2 horizontal across the bottom for stuff) This will open up new hooks as well Marriage system (will be basic to start). Will potentially open new hooks. And an advanced playershops. Advanced = the usual stuff like management and to keep it modular and open to different genres I'm planning on a timed system where its only open on certain days like weekends etc for players to purchase items kind of like a medieval marketplace
-
I use interserver and have had no issues with them at all and their support imho is pretty kickass. Their VPS plans start at $6/mo per slice and a little bit more if you want windows. But you can check it out here or if you wanted to be super cool and sign up you can use my referral link (I do get paid). For your requirements of a VPS, your looking at min. $48/mo. Here are some dedi specs: Intel Dual-Core Atom 1 GB 250 GB $39.00/mo. Xeon E3-1230 16 GB 250 GB $139.00/mo. 2 x Six-Core E5-2620 8 GB 250 GB $310.00/mo.
-
Yeah I know it works lol :p j/k. it may be an error on my end, maybe I named the file wrong for the update SQLs?? I will look into it on my end. but thanks for your patience
-
Need a change in the combat module
KyleMassacre replied to orsino's topic in Paid modules (requests or offers)
well I can whip you up something this weekend if you want? -
that was quick haha
-
this would probably be something alain would have to look at. I think it may be because the chat runs kind of along side the the content of the pages (if that makes sense). For now you just maybe able to add towards the top of the chat something like: if (GetUserVariable(playerBan) == "true") return; And that should kill the chat. Maybe Alain can update it some how and while he is at it, enable the "to_user" *hint-hint* :p
-
if it was going to be properly added then why use security at all :) Did that hurt???? BUUUUUUURNNNNN!!!!! Seriously, j/k. but seriously ↑
-
Need a change in the combat module
KyleMassacre replied to orsino's topic in Paid modules (requests or offers)
this would be super simple but here's the catch: By default it doesn't send a log to the player being attacked but something like that is easy to do in the modules much like I do with my mugging module. If you were to add it into your combat lib then a developer creates a module and adds notification then the player is getting spammed -
make sure all the tables got inserted for the donate module. The errors your describing mean that your missing some db info. for some reason the upgrades didn't execute so I may have to look into that
-
there is an upgrade sql file too so maybe copy/paste that into your db