Siema, potrzebuje skrypt przerobic zeby dawal dni premium i zwiekszal expa na x czasu. Tutaj mam skrypt ale zwieksza caly czas o 50% expa, nie moge tego zmienic, mozna go uzywac x razy i caly czas zwieksza exp rate.
- local this_script_is_awesome = true -- The choice is your if you want the script work then you leave it true
- local otswe = {
- prem_days = 7, -- Edit how many days
- rate = 1,
- storage = 1000,
- expstorage = 1000,
- register = 1000,
- time = 14400,
- }
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if this_script_is_awesome == true then
- if isPlayer(cid) then
- local rates = getPlayerRates(cid)
- setPlayerStorageValue(cid, otswe.storage, os.time()+otswe.prem_days)
- setPlayerStorageValue(cid, otswe.expstorage, rates[SKILL__LEVEL])
- setPlayerStorageValue(cid, otswe.register, 1)
- doPlayerAddPremiumDays(cid, otswe.prem_days)
- doSendAnimatedText(getCreaturePosition(cid), otswe.prem_days, TEXTCOLOR_RED)
- doPlayerSendTextMessage(cid, 19, "Gratz you have obtained +7 premium days.")
- doRemoveItem(item.uid, 1)
- else
- doPlayerSendTextMessage(cid, 19, "The admin dont want to admit it -.-.")
- end
- end
- end
Last edited: