• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Item description?

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hello!
I want one talkaction to make one description in one item!
example.
i want to do a 'reset player when get X lvl' and give a trofeu to he... :D
Example: You see a 'trofeu'. It is of player OtLand. He have 5 resets.
Ty...

Is that what i want!
Thanks.
HAHAHA =DDD
 
try:

LUA:
	local items = doPlayerAddItem(cid,ITEM-ID,1)
        doSetItemSpecialDescription(items, description)
 
I will not give you the ready to use algorithm, since making this it won't make you learn. So some hints of how to do that:

1. The reset thing
Since you'll reset a player when he/she got an specific level, you need to use the event called "onAdvance", and use a simple comparation.

2. The look thing
In the same scope of the "onAdvance" part you should alter the description of an item given, so you've to do what GSMaster told you.
To count how much resets a player got, you can have a var called 'count' for example to see how much the player got reseted.

Now it is up to you! I give you the ball.
 
Back
Top