- Dołączył
- Wrzesień 30, 2015
- Posty
- 74
- Liczba reakcji
- 1
Witam, Mam pewien problem bo MAM SKRYPT NA EXP SCROLL tzn... jest papierek, uzywa sie go on znika i chcialbym do niego skrypt by pokazywalo ile do konca, tego papierka.
Tzn, EXP SCROLL Uzywa si? (znika) trwa 60 min i chcialbym zeby co 10 min wyskoczyla na czerwono informacja Graczowi , ile DO KONCA EXP SCROLLA NA Chacie DEFAULT.
[XML]function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 18235) > os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Dziala ci juz inny bonus exp.")
return false
end
if getPlayerStorageValue(cid, 18236) > os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Dziala ci juz inny bonus exp.")
return false
end
if getPlayerStorageValue(cid, 18234) < os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: 20% more rate experience rate.")
doPlayerSetExperienceRate(cid, 1.2)
if getPlayerStorageValue(cid, 11551) > 0 then
setPlayerStorageValue(cid, 18234, os.time() + 3600)
else
setPlayerStorageValue(cid, 18234, os.time() + 3600)
end
doRemoveItem(item.uid)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't use this.")
end
return true
end [/XML]
---------- Tre?? dodana o 18:06 ----------
refresh prosz? o pomoc !
---------- Tre?? dodana o 10:22 ----------
Refresh zalezy mi na tym :ccc
Tzn, EXP SCROLL Uzywa si? (znika) trwa 60 min i chcialbym zeby co 10 min wyskoczyla na czerwono informacja Graczowi , ile DO KONCA EXP SCROLLA NA Chacie DEFAULT.
[XML]function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 18235) > os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Dziala ci juz inny bonus exp.")
return false
end
if getPlayerStorageValue(cid, 18236) > os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Dziala ci juz inny bonus exp.")
return false
end
if getPlayerStorageValue(cid, 18234) < os.time() then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your extra experience rate has been activated! It is now: 20% more rate experience rate.")
doPlayerSetExperienceRate(cid, 1.2)
if getPlayerStorageValue(cid, 11551) > 0 then
setPlayerStorageValue(cid, 18234, os.time() + 3600)
else
setPlayerStorageValue(cid, 18234, os.time() + 3600)
end
doRemoveItem(item.uid)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can't use this.")
end
return true
end [/XML]
---------- Tre?? dodana o 18:06 ----------
refresh prosz? o pomoc !

---------- Tre?? dodana o 10:22 ----------
Refresh zalezy mi na tym :ccc