-
Posts
2,921 -
Joined
-
Last visited
-
Days Won
48
Content Type
Profiles
Forums
Events
Everything posted by KyleMassacre
-
one thing would be easier/better module implementation, V0.X.X had a lot going on with creating and installing a module to the engine
-
try changing it to this: if($db->num_rows($db->query("SELECT id FROM packages") < 1)) if not do it the long way $res = $db->query("SELECT id FROM packages"); if($db->num_rows($res) < 1)
-
I just tried it a bit ago and it reminded me of "Hill Climb Racing" which was pretty fun. I had to get off because im on a 6 y/o laptop and I started bogging down ;) but anyway, it was pretty interesting and I had a good time
-
its not tested but try this: <?php include "globals.php"; print " <h3>Donations</h3> <strong>[<a href='willpotion.php'>Buy Will Potions</a>]</strong> If you become a donator to ". $set['game_name'] ." you will receive (each time you donate):"; if($db->num_rows($db->query("SELECT id FROM packages")) < 1) echo "Sorry, but there are currently no packages in the game yet."; else $q=$db->query("SELECT * FROM packages WHERE deleted!='1' ORDER BY cost ASC"); while($r=$db->fetch_row($q)) echo "<fieldset><legend>$r['name'] (".money_formatter($r['cost'])."--)</legend><ul>"; if($r['money'] > 0) echo "<li>".money_formatter($r['money'])." game money.</li>"; if($r['crystals'] > 0) echo "<li>".number_format($r['crystals'])." crystals</li>."; if($r['iq'] > 0) echo "<li>".number_format($r['iq'])." IQ, the hardest stat in the game to get.</li>"; if($r['ddays'] > 0) echo "<li>".number_format($r['ddays'])." days Donator Status: Red name + cross next to your name.</li>"; echo "<li>17% Energy every 5 minutes instead of 8%. (For aslong as you have Donator Status)<li>Access to Friends and Black lists</li></ul>"; echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'; echo '<input type=hidden name=cmd value=_xclick>'; echo '<input type="hidden" name="business" value="'.$set['paypal'].'">'; echo '<input type="hidden" name="item_name" value="'.$domain.'|DP|'.$r[id].'|'.$userid.'">'; echo '<input type="hidden" name="amount" value="'.$r['cost'].'.00">'; echo '<input type="hidden" name="no_shipping" value="1">'; echo '<input type="hidden" name="return" value="http://'.$domain.'/donatordone.php?action=done&type=standard">'; echo '<input type="hidden" name="cancel_return" value="http://'.$domain.'/donatordone.php?action=cancel">'; echo '<input type="hidden" name="notify_url" value="http://'.$domain.'/ipn_donator.php">'; echo '<input type="hidden" name="cn" value="Your Player ID">'; echo '<input type="hidden" name="currency_code" value="USD">'; echo '<input type="hidden" name="tax" value="0">'; echo '<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">'; echo '</form>'; echo "</fieldset>"; endwhile; endif; $h->endpage();
-
im looking at the script right now so give me a few minutes
-
get rid of the colon ":" at the end of 11
-
remove the "*" there too after MyISAM. I must have missed that one
-
Try This: CREATE TABLE IF NOT EXISTS `packages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `money` int(11) NOT NULL, `crystals` int(11) NOT NULL, `iq` int(11) NOT NULL, `ddays` int(11) NOT NULL, `name` varchar(32) NOT NULL, `cost` int(11) NOT NULL, `deleted` int(1) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM* DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; There was a grip of "*" in there and there is not supposed to be
-
honestly your trying to reinvent the wheel here. dave's mod can/does everything you require plus more. You want unlimited amounts of items in a pack? Dave's does it. You want instant credit? Daves does it or doesn't which ever you prefer. You want it sent in a package or added to their stats or inventory automatically? Daves does it. You want to use a different gateway along with other than paypal? daves can do it. if you want people to not "have seen this before" change the styles. if you want a limited quantity make a few alters the the code and the database, I don't think its that hard in fact I would be stoked if he ported it over to NWE. hint hint dave
-
Not a problem, glad I can help
-
not that I know of, i just grabbed that from the wizard_logic table :p
-
Hey everyone, I just wanted to show you something that I am working on and it will be done tomorrow when I start it back up. Basically it is a bounty list where players can add their bullies to a list and other players can attempt to beat them up for the money offered. Current Features: Add players to the list for X amount of money There is a minimum bounty amount [*]Players are allowed to stay anonymous if they fear of retaliation Anonymous bounties cost X amount extra [*]The player that added the bounty can cancel it at anytime Its not in yet but I am going to add a safeguard so that once the bounty is active they cannot cancel it Todo Like I said in #3 i will add in so they cant take it back if its active Add in the combat feature [*]Any of your ideas? I will try to add it in before I finish it and release it by tomorrow (05/27) Preview [ATTACH=CONFIG]971[/ATTACH] As you can see the person that added the bounty has a cancel link, if you are the one on the bounty list then you have no available actions, and if you are no part of that bounty you can attempt to claim it for yourself and earn the reward. Also as you can see there is some privacy and if its your bounty you added and you went private then for you it shows your name but not for the others. So if you have any ideas let me know If you when you get the money and player goes to hospital If you lose nothing happens with the bounty and you go to the hospital instead
-
it may help if you post a budget and what all you are looking for
-
yeah with this: CurrentPlayerLocation() == @LocationID@
-
so you need to get rid of the "max_value" and change it to "value"
-
The default userclass system should work, do you have a url you can pm me? ohhhhhh from this: $userStats["Health"]->max_value+=100; To: $userStats["Health"]->value+=100;
-
Oh oh! I decided to go with NWE and...
KyleMassacre replied to DungeonMaster's topic in New Worlds Engine
sorry to dig this grave up but I just had a thought. like I said in a previous post about using the config.xml to display other module information for example we can use something like this: <?xml version="1.0" encoding="UTF-8"?> <configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.nw-engine.com/modules.xsd"> <module version="1.0.0" name="Restore Stats" author="Alain Bertrand" description="Restore some of the stats over time. The configuration is on the stats themselves." /> <variable name="statsLastCheck" /> <dependants> <engine version="1.1.6" /> <module name="home" version="1.0.3" /> </dependants> </configuration> then possible on install or update if those modules listed or the engine version listed isn't up to date then it flags you and aborts update or install. would that be doable? **side note** don't mind the xml it was just used as an example I'm not entirely sure that it meets requirements :p but you get the point -
Timed Games With Own Top Rated System
KyleMassacre replied to DungeonMaster's topic in Free Modules (Requests or Offers)
ohh I thought you wanted to keep track of how much they gain during game play for example I join the ladder and after that I go do a couple crimes/missions, jobs, or possible even mug some people so in total lets say I gained $1000 currency from the moment of joining. that would be hard to track because the gain of currency is spread out through modules, but you saying you just want to see who has more cash in hand at the end of the event? If so, that would be pretty simple but then when it comes down to clan banks for instance cause at the last minute a clan master can just make a huge withdraw and take the win so it could come down to richest clan :p -
Timed Games With Own Top Rated System
KyleMassacre replied to DungeonMaster's topic in Free Modules (Requests or Offers)
so basically like a ladder system? th core of that should be pretty easy its just wrapping it Into existing modules I probably wouldn't be able to do -
Who would be interested in a map system like NEaB inside NWE?
KyleMassacre replied to a_bertrand's topic in New Worlds Engine
thats not really the same kind of map in the discussion here. this map is one where you would control your char. like in old school link games on nes and snes -
1.) some tables are not supported by the table editor a.) the first column I believe must be set to auto increment. 2.)the table wasn't defined in the .xml because its not important enough for ease of accessibility a.) the author doesn't think its important to use the table editor for a particular table/tables 3.) or you just don't need to really view/alter the tables a.) maybe there is sensitive information just in case of an admin injection like the users table b.) do you really wanna see all the users inventory table? it really provides no information needed to run a game. these are just my opinions, when I create a module and I'm too lazy to create a staff page and I think its beneficial to add/remove/alter something in the db ill add it to the table editor.
-
Disable Menu Links For Conditions
KyleMassacre replied to DungeonMaster's topic in New Worlds Engine
in the menu.php file you can use if() to disable the link or not to show it, and in your content file you would pretty much do the same condition if they just so happen to sneak past the token system if enabled -
How to integrate SMF into any McCodes Package
KyleMassacre replied to sniko's topic in Free Modifications
well I believe (with out looking at the table structure) the they have an id in the forum table that is set to AI, so what you can do is use my code I posted above and import all users information over then the user id from the game and from the forum should match -
How to integrate SMF into any McCodes Package
KyleMassacre replied to sniko's topic in Free Modifications
well just like sniko stated you can open your connection to your other db like in the instructions above in the page(s) where the user will change his forum info like username/password. You are basically going to do the reverse of what you did to integrate the forum. Now I'm not too sure if you can include your global funcs file in the smf page so you can keep your mysql class you currently use so its not different to run you commands, ex: $db->query() or just do mysqli if your not able to figure out the class structure smf uses to update the database, then you close your connection with your mc codes db