Skrypty & Kody Skrypt exp scroll

Status
Zamknięty.

CunAus

Active User
Zarejestrowany
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
 
Odp: Skrypt exp scroll

Szczerze mowi?c nie wiem czy zadzia?a robi?em na ?lepo XD

Kod:
local storage = 18234

function gowno()
local czas = exhaustion.get(cid, storage)
local czas2 = czas / 60
local czas3 = math.ceil(czas2)
doPlayerSendTextMessage(cid, 19, "Zosta?o ci jeszcze "..czas3.." minut")
end

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)
        addEvent(gowno, 10*600, cid)
	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
 
Ostatnia edycja:
Odp: Skrypt exp scroll

Nie dzi@l@ :( refresh prosz? o pomoc

---------- Tre?? dodana o 15:42 ----------

REFRESH :(.

---------- Tre?? dodana o 17:31 ----------

RefreSH PLS HELP ME :(
 
Status
Zamknięty.
Back
Do góry