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