• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

exhaust w drzewku

Status
Zamknięty.

MrDanio1288

User
Zarejestrowany
Dołączył
Czerwiec 27, 2009
Posty
11
Liczba reakcji
0
Mam pytanie jak dodac do tego skryptu exhausted na 5 minut
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
 
Odp: exhaust w drzewku

np:
Kod:
function onUse(cid, item, frompos, item2, topos)

pos = getPlayerPosition(cid)
if item.itemid == 2703 then
if getPlayerStorageValue(cid, 25945) == -1 or getPlayerStorageValue(cid, 25945) == 1 then
doSendMagicEffect(topos,46)
doTransformItem(item.uid, 2703)
doPlayerAddItem(cid,2674,1)
addEvent(exh_1,5000,cid)
return 0
else
doPlayerSendCancel(cid, 'You are exhausted.')
end 
end

return 1
end


function exh_1(cid)
if getPlayerStorageValue(cid, 25945) == 2 then
setPlayerStorageValue(cid, 25945, 1)
end
	return TRUE
end
 
Status
Zamknięty.
Back
Do góry