Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

Posted
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

Posted
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
Posted

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 :)

Posted

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

Posted

@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

Posted

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.

Posted
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...

Posted
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 :)

Posted

@SlanderDesign - If your stuck ill help you if you need it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...