What's new

exhaust w drzewku

Status
Not open for further replies.
Joined
Jun 27, 2009
Messages
11
Reaction score
0
Mam pytanie jak dodac do tego skryptu exhausted na 5 minut. Prosze bardzo o pomoc. Ten skrypt jest mi naprawde potrzebny.
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
if item.itemid == 2703 then
doSendMagicEffect(topos,46)
doTransformItem(item.uid, 2703)
doPlayerAddItem(cid,2674,1)
else
return 0
end
return 1
end
 

FerN

Senior User
Joined
Apr 10, 2009
Messages
597
Reaction score
27
Odp: exhaust w drzewku

PHP:
function onUse(cid, item, frompos, item2, topos)
pos = getPlayerPosition(cid)
if item.itemid == 2703 then
doSendMagicEffect(topos,46)
doTransformItem(item.uid, 2703)
doPlayerAddItem(cid,2674,1)
exhaustion.make(cid, 20000, 300)
else
return 0
end
return 1
end

Nie wiem czy zadzia?a, nie znalaz?em innej funkcji x)
 
Joined
Jun 27, 2009
Messages
11
Reaction score
0
Odp: exhaust w drzewku

Ten skrypt nie dziala. Jak to uzyc funkcji event?
 
Status
Not open for further replies.
Top