se7enet purgatorio

Page 4 of 6 « First<23456>
Topic Options
Rate This Topic
#18361 - 09/19/08 08:43 PM Re: Want a custom feature? [Re: EAL]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
I figured it out .
after:
if ($safecontent == "" || $safecontent == " ") { //blank post. do nothing.
}

add:

if ($safecontent == "gimme gold" || $safecontent == " ") { //blank post. do nothing.
}

it still gives you money but it dont post the cheat.
important if you are going have more than one cheat you need to use the elseif instead of if.

if ($safecontent == "" || $safecontent == " ") { //blank post. do nothing.
}
elseif ($safecontent == "gimme gold" || $safecontent == " ") { //blank post. do nothing.
}
elseif ($safecontent == "gimme hp potion" || $safecontent == " ") { //blank post. do nothing.
}
elseif ($safecontent == "gimme mp potion" || $safecontent == " ") { //blank post. do nothing.
}
elseif ($safecontent == "gimme tp potion" || $safecontent == " ") { //blank post. do nothing.
}
elseif ($safecontent == "gimme tp" || $safecontent == " ") { //blank post. do nothing.
}

if you dont it will show all the ones before the last one.


Edited by EAL (09/19/08 08:58 PM)

Top
#18362 - 09/19/08 09:45 PM Re: Want a custom feature? [Re: EAL]
Fayt
Crunchberries
***

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

Offline
True that works, good job.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18365 - 09/23/08 07:07 PM Re: Want a custom feature? [Re: Fayt]
EAL
Grape Nuts


Registered: 07/03/08
Posts: 31

Offline
thanks
Top
#18369 - 09/24/08 06:55 PM Re: Want a custom feature? [Re: EAL]
Roy766
Malt-o-Meal


Registered: 05/30/08
Posts: 6

Offline
Hey Fayt, I was wondering...

I have this temp item that's used specifically so you can complete a quest (godly weapon of death. Pretty much impossible to die). Now that the quest is complete, I wanna change it to some useless weapon that sells for a ton, but from what I've found from changing item names, the item itself will change, but everybody who has the item in their inventory will still keep it there unless they're dumb enough to sell it. Any suggestions on an automation script that will replace the item for everyone who has it in their inventory?


Edited by Roy766 (09/24/08 06:56 PM)

Top
#18371 - 09/24/08 07:36 PM Re: Want a custom feature? [Re: Roy766]
Fayt
Crunchberries
***

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

Offline
Make a second item with the same name, and change the type of it, and custom it to what you want it to do. Then when the quest is complete, remove that item from them, and insert the other one to their account.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18372 - 09/24/08 10:38 PM Re: Want a custom feature? [Re: Fayt]
Roy766
Malt-o-Meal


Registered: 05/30/08
Posts: 6

Offline
The problem is that the quest has already been completed by several members....
Top
#18373 - 09/24/08 11:32 PM Re: Want a custom feature? [Re: Roy766]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
Then run this SQL command in PHPMYADMIN

UPDATE {{myuserstable}} SET weaponid={{2nditemweaponid}},weaponname={{2nditemweaponname}},attackpower=attackpower-{{1stitemattribute}} WHERE weaponid={{1stweaponid}}

{{myuserstable}} = Your users table, like dk_users
{{2nditemweaponid}} = The ID number of the 2nd Godly Weapon of Death you've created (which is slightly different)
{{2nditemweaponname}} = Same as above, but now you've got to fill in it's name
{{1stitemattribute}} = How much the first item adds to your attackpower
{{1stweaponid}} = The ID number of the 1st Godly Weapon of Death

And run this SQL command after the first:

UPDATE {{myuserstable}} SET attackpower=attackpower+{{2ndweaponattribute}} WHERE weaponname={{2ndweaponname}}

{{2ndweaponattribute}} = How much the 2nd item adds to your attackpower

Top
#18374 - 09/25/08 08:26 AM Re: Want a custom feature? [Re: gamefreak888]
Fayt
Crunchberries
***

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

Offline
Just reset everyones quest by a mass query.

doquery("UPDATE {{table}} SET quest1='Not Started' WHERE id>'0'," "users");
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18375 - 09/25/08 11:59 PM Re: Want a custom feature? [Re: Fayt]
Roy766
Malt-o-Meal


Registered: 05/30/08
Posts: 6

Offline
Thanks, basleijser. Needed to modify it a bit, because yours replaced every users item with the second item, but otehr than that it works great.

Edited by Roy766 (09/26/08 12:01 AM)

Top
#18376 - 09/26/08 07:55 AM Re: Want a custom feature? [Re: Roy766]
gamefreak888
Rice Krispies


Registered: 09/06/07
Posts: 215

Offline
It replaced every users item?

But it has this code inside it:

WHERE weaponid={{1stweaponid}}

So only users with that Uber Weapon will have their stats changed a bit.

Top
#18377 - 09/26/08 11:50 PM Re: Want a custom feature? [Re: gamefreak888]
Roy766
Malt-o-Meal


Registered: 05/30/08
Posts: 6

Offline
Hm...seems weird. Maybe it's one of the modifications I made to the users table.

EDIT: No, sorry didn't run the "where" command. Hm, maybe I didn't copy that part? =P


Edited by Roy766 (09/26/08 11:52 PM)

Top
#18378 - 09/28/08 05:08 AM Re: Want a custom feature? [Re: Roy766]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
Can you add these modifications to DK Mod Index? It would be easier to find them, if someone needs..
Top
#18388 - 10/01/08 11:50 AM Re: Want a custom feature? [Re: Justas]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
I want to show character on this map:
http://img375.imageshack.us/my.php?image=12ns7.png
If I'm moving to south, character is looking down, if i'm moving to north, character is looking up, moving to west = character looking to right, and moving to east = character looking to right...


Edited by Justas (10/01/08 11:50 AM)

Top
#18389 - 10/01/08 02:50 PM Re: Want a custom feature? [Re: Justas]
Fayt
Crunchberries
***

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

Offline
Javascript might be able to do this, but flash and java would be better.
_________________________
MasterFayt - Amara 5 - Manas - Banar

Top
#18392 - 10/02/08 07:43 AM Re: Want a custom feature? [Re: Fayt]
Justas
Corn Flakes


Registered: 08/30/08
Posts: 63

Offline
So.. can you make it?
Top
Page 4 of 6 « First<23456>


Hop to:

se7enet

Barack Obama Logo