SlanderDesign Posted May 8, 2010 Share Posted May 8, 2010 Okay so here is 2 weapon slots mod requested by someone :S Run shit SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. open attack.php and replace with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save close. Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 8, 2010 Author Share Posted May 8, 2010 Open classes.php and replace with this one (may want to get rid of some things) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open equip.php and replace with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 8, 2010 Author Share Posted May 8, 2010 open inventory.php replace with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Okay this is not tested at all... couldn't get on cpanel :/ any bugs please tell me Quote Link to comment Share on other sites More sharing options...
Kakashi Posted May 15, 2010 Share Posted May 15, 2010 Nicely explained, accurate and noob friendly :), I use GRPG as well. Made a couple of mods too, like hitlist, scavenge, gang wars (working on that), high/low card game, shoes/hats, furniture etc. Quote Link to comment Share on other sites More sharing options...
Dave Posted May 15, 2010 Share Posted May 15, 2010 I doubt you made this.. Considering I've heard allot about you passing around mine and others mods. Quote Link to comment Share on other sites More sharing options...
Djkanna Posted May 15, 2010 Share Posted May 15, 2010 "heard" - isn't a good word when accusing someone ;) If so please take it to PM :) Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 17, 2010 Author Share Posted May 17, 2010 I doubt you made this.. Considering I've heard allot about you passing around mine and others mods. I did infact make this. What ever you have heard is wrong. And for passing out mods? Why would I when all the mods I have are for GRPG and What I have made! Please enlighten me of who has told you this propaganda! Regards SlanderDesign Quote Link to comment Share on other sites More sharing options...
Kakashi Posted May 19, 2010 Share Posted May 19, 2010 Open classes.php and replace with this one (may want to get rid of some things) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open equip.php and replace with this one You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You shouldn't replace the whole classes.php, as there may be other updated features in classes.php as they play a big part in the GRPG script. For example, you could put the things required for the weapon slots, $this->eqweapon2 = $worked6['id']; Kakashi :P Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 21, 2010 Author Share Posted May 21, 2010 Yeah, I was busy when i made this :S I really should make a better one... One where players cant get billions from 1 attack :L As I just said... A secure attack.php UN TESTED! You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Any errors pm me or post fix :) Quote Link to comment Share on other sites More sharing options...
Infamous cTz Posted May 21, 2010 Share Posted May 21, 2010 would also be nice for items to be able to affect all stats +/- ... instead of just choosing between defense(armor) or strength(weapon)... but unfortunately for me it looks like brain surgery lol ... i will let everyone know if i have a moment of clarity Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 21, 2010 Author Share Posted May 21, 2010 I tested this again before the update a second ago.. It all seems to work... Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted May 22, 2010 Share Posted May 22, 2010 @David - If I told you Bin Larden was infact very kind and loved to sit and talk about cute cats, Would you believe me? I don't think so, So untill you have concrete proof, Don't go round saying shit that you have no idea about. @Slander - Very good job man, Not many people actually develop for GRPG as it's a kinda bad engine but you're getting better bro, Keep it up Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2010 Share Posted May 24, 2010 You should edit their User class it sucks. Example... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Kakashi Posted May 25, 2010 Share Posted May 25, 2010 would also be nice for items to be able to affect all stats +/- ... instead of just choosing between defense(armor) or strength(weapon)... but unfortunately for me it looks like brain surgery lol ... i will let everyone know if i have a moment of clarity Fortunately, I have made a mod for that, however I cannot give it for free. No pain, no gain... Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 25, 2010 Author Share Posted May 25, 2010 would also be nice for items to be able to affect all stats +/- ... instead of just choosing between defense(armor) or strength(weapon)... but unfortunately for me it looks like brain surgery lol ... i will let everyone know if i have a moment of clarity Fortunately, I have made a mod for that, however I cannot give it for free. No pain, no gain... -.- Pointless post? You should edit their User class it sucks. Example... PHP Source code 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 class User { public $data = array(); /* DB object? private $db = null; */ public function __construct ( /* Your other objects/arrays/variables to pass threw the function.. */ ) { /* Passing threw a db object? then do it -.- $this->db = & $db; */ } public function __set ( string $key, string $value ) { if (isset($this->data[$key]) && $this->data[$key] !== $value) { $this->data[$key] = $value; $this->db->query('query....'); } return null; } public function __get ( string $key ) { return isset($this->data[$key]) ? $this->data[$key] : null; } } /* Start the class? $user = new User( Pass threw your other stuff here ? ); Show there username? echo $user->username; Update there username? $user->username = "Username"; */ ?> Thanks - going to give it a shot :) Quote Link to comment Share on other sites More sharing options...
Guest Posted May 26, 2010 Share Posted May 26, 2010 @SlanderDesign - If your stuck ill help you if you need it. Quote Link to comment Share on other sites More sharing options...
Infamous cTz Posted May 27, 2010 Share Posted May 27, 2010 theres no way to use this extra slot since you can still only add armor(defense) or weapon(offense) stats to any item... ?( Quote Link to comment Share on other sites More sharing options...
SlanderDesign Posted May 30, 2010 Author Share Posted May 30, 2010 You asked for weapon slots, that's what I gave. @CrazyT, I don't plan on using GRPG anymore. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.