• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

functions

Luke sky walker

New Member
Joined
Jun 20, 2008
Messages
45
Reaction score
2
i need two new functions

getItemCount(itemid)

example:
PHP:
doRemoveItem(itemEx.uid, getItemCount(itemEx.uid))
I think it would be useful if the person wants to remove items in quantity as crystal coins when he would check how many coins have to delete all think seriously a very useful function.

and

doPlayerRemStorageValue(cid, storageid)

example:
PHP:
doPlayerRemStorageValue(cid, 1500)
function is used for more serious tests even for example if I were testing a serious issue not need me off and delete the id of the quest in MySql.

OBS: sorry if my English is bad because I used a translator.
 
OBS: I USE TFS 0.2 PATCH 15
when using
PHP:
doPlayerSetStorageValue(cid, 1500, -1)
cause this BUG
imagemve2.jpg
 
Hmm, yea its just wasting space in db. But it works.

doPlayerSetStorageValue(cid, 1500, -1) will reset.
But shouldn't be saved becouse it gives nothing. So it should be changed.

And, what exactly you want to do.?
 
wanted him to remove the id that is only when I'm using it for testing with new scripts that do to my server.

Thank you for your attention slawkens.
 
Back
Top