se7enet purgatorio

Page 1 of 2 12>
Topic Options
Rate This Topic
#17609 - 06/23/08 05:16 AM find gold for DS, it's work
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
i have tested it, and it work !

 Code:
1. firstly, open explore.php in your game directory

2. find :

 // Decide if we want to pick a fight with someone.
    

3. add this to above

//Find gold modified by poetoe
    if (rand(1,20) == 1 && $userrow["currentaction"] != "In Town") { 
	$gold = rand(1,5000); // Select a random number between 1 and 5000 which is the amount the user with obtain.
	doquery("UPDATE sx_users SET gold=gold+$gold WHERE id=".$userrow["id"], "users"); // Update the gold variable.
	$page = "You were walking along the road and you found $gold gold on the ground!"; // Output
	display("You have found money on the ground!", $page);
    }



Edited by poetoe (06/23/08 05:18 AM)
_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17613 - 06/23/08 08:00 AM Re: find gold for DS, it's work [Re: poetoe]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
Should I even comment on this? Yes I should.

This is the most simple mod I have ever seen. No work involved, but you still messed up I believe.

$userrow["currentaction"] != "In Town"

Shouldn't that be == "Exploring" ?
So if your at an inn, buying equipment, etc you'd still get gold!
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17628 - 06/24/08 07:18 AM Re: find gold for DS, it's work [Re: Fayt]
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
hahaha, sorry, i forget about it, but, you make some mistake

the true is :


$userrow["currentaction"] != "Explore"

not :

$userrow["currentaction"] != "Exploring"

hehe
_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17629 - 06/24/08 07:19 AM Re: find gold for DS, it's work [Re: poetoe]
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
UPDATED SCRIPT

 Code:
1. firstly, open explore.php in your game directory

2. find :

 // Decide if we want to pick a fight with someone.
    

3. add this to above

//Find gold modified by poetoe
    if (rand(1,20) == 1 && $userrow["currentaction"] != "Explore") { 
	$gold = rand(1,5000); // Select a random number between 1 and 5000 which is the amount the user with obtain.
	doquery("UPDATE sx_users SET gold=gold+$gold WHERE id=".$userrow["id"], "users"); // Update the gold variable.
	$page = "You were walking along the road and you found $gold gold on the ground!"; // Output
	display("You have found money on the ground!", $page);
    }
_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17635 - 06/24/08 08:40 AM Re: find gold for DS, it's work [Re: poetoe]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
But if your not exploring, how do you gain gold?
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17636 - 06/24/08 08:51 AM Re: find gold for DS, it's work [Re: Fayt]
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
i have tested it,

"exploring" not work
"explore" work perfectly

_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17652 - 06/24/08 08:51 PM Re: find gold for DS, it's work [Re: poetoe]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
So basicly if I bought a weapon, I get gold?
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17657 - 06/25/08 01:54 AM Re: find gold for DS, it's work [Re: Fayt]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
One of the lines in the script says:
"You have found money on the ground!"

I don't know how you couldn't figure that out.

Top
#17659 - 06/25/08 03:03 AM Re: find gold for DS, it's work [Re: Fayt]
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
nope \:\)
_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17660 - 06/25/08 03:04 AM Re: find gold for DS, it's work [Re: Sephiroth]
poetoe
Grape Nuts


Registered: 06/18/08
Posts: 45

Offline
it's for title page, you can change it
_________________________
For 3 Days, I Had Translated Scourge to indonesian


Top
#17667 - 06/25/08 07:48 AM Re: find gold for DS, it's work [Re: poetoe]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
You fail to see
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17671 - 06/25/08 03:20 PM Re: find gold for DS, it's work [Re: Fayt]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
?
Top
#17672 - 06/25/08 05:39 PM Re: find gold for DS, it's work [Re: Sephiroth]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
You also failed
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#17674 - 06/25/08 07:02 PM Re: find gold for DS, it's work [Re: Fayt]
Sephiroth
Cheerios
*****

Registered: 11/20/07
Posts: 131
Loc: The Lifestream

Offline
Way to encourage an active environment.
Top
#17676 - 06/25/08 09:46 PM Re: find gold for DS, it's work [Re: Sephiroth]
Fayt
Crunchberries
***

Registered: 11/08/05
Posts: 1131
Loc: My Computer, USA

Offline
You failed again, stop failing
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
Page 1 of 2 12>


Hop to:

se7enet

Barack Obama Logo