VencenzoCapone
Active User
- Joined
- Nov 21, 2010
- Messages
- 57
- Reaction score
- 2
Witam,
Prosz? o pomoc w dodaniu do skryptu czasu na jego u?ycie. Czyli np. chcia? bym aby przedmiotu mo?na by?o u?ywa? co 6 godzin.
Oto skrypt :
Prosz? o pomoc w dodaniu do skryptu czasu na jego u?ycie. Czyli np. chcia? bym aby przedmiotu mo?na by?o u?ywa? co 6 godzin.
Oto skrypt :
Z g?ry dzi?kuj? i pozdrawiam.function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,1301) == 2 then
doCreatureSay(cid, "You can only use this scroll once!", TALKTYPE_ORANGE_1)
else if getPlayerLevel(cid) >= 8 then
doCreatureSay(cid, "You Gained 80 000 000 Experience Points!", TALKTYPE_ORANGE_1)
doPlayerAddExp(cid, 80000000)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doRemoveItem(item.uid)
return TRUE
else
doCreatureSay(cid, "You must be over level 8 to use this scroll", TALKTYPE_ORANGE_1)
end
end
end