What's new

Exp Candy 8.54

Status
Not open for further replies.

derlin

Active User
Joined
Mar 15, 2009
Messages
137
Reaction score
5
Witam, potrzebuj? skryptu na item kt?ry po u?yciu daje 400 expa i znika, lecz mo?na go zdoby? i u?yc kolejny raz itd. czyli mo?na u?y? wielokrotnie. Item ma mie? id 6569 (candy), lub 6544 (green coloured egg) :hah:
 

Oskar

Forum friend
Joined
Jan 24, 2009
Messages
2,256
Reaction score
331
Odp: Exp Candy 8.54

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 6569 then
doPlayerAddExp(cid, 400)
doSendAnimatedText(getPlayerPosition(cid),"400", TEXTCOLOR_WHITE)
doPlayerRemoveItem(cid, 6569, 1)
end
return TRUE
end
A do actions.xml:
PHP:
<action itemid="6569" event="script" value="candy.lua"/>
 

derlin

Active User
Joined
Mar 15, 2009
Messages
137
Reaction score
5
Odp: Exp Candy 8.54

Dzi?kuje za szybk? odpowiedz, w actions.xml przed candy doda?em other/ i dzia?a jak nale?y, cho? w silniku przy ?adowaniu pokazuje duplicate item. Reput dla Ciebie i temat do zamkni?cia :)
 
Status
Not open for further replies.
Top