• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

prem scroll z dodatkowym exp

OTAmator

Active Member
Joined
May 4, 2016
Messages
99
Solutions
1
Reaction score
31
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.

  1. local this_script_is_awesome = true -- The choice is your if you want the script work then you leave it true

  2. local otswe = {
  3. prem_days = 7, -- Edit how many days
  4. rate = 1,
  5. storage = 1000,
  6. expstorage = 1000,
  7. register = 1000,
  8. time = 14400,
  9. }

  10. function onUse(cid, item, fromPosition, itemEx, toPosition)
  11. if this_script_is_awesome == true then
  12. if isPlayer(cid) then
  13. local rates = getPlayerRates(cid)
  14. setPlayerStorageValue(cid, otswe.storage, os.time()+otswe.prem_days)
  15. setPlayerStorageValue(cid, otswe.expstorage, rates[SKILL__LEVEL])
  16. setPlayerStorageValue(cid, otswe.register, 1)
  17. doPlayerAddPremiumDays(cid, otswe.prem_days)
  18. doSendAnimatedText(getCreaturePosition(cid), otswe.prem_days, TEXTCOLOR_RED)
  19. doPlayerSendTextMessage(cid, 19, "Gratz you have obtained +7 premium days.")
  20. doRemoveItem(item.uid, 1)
  21. else
  22. doPlayerSendTextMessage(cid, 19, "The admin dont want to admit it -.-.")

  23. end
  24. end
  25. end
 
Last edited:
Wystarczy zwiększać exp onLogin dla premium graczy.

czyli jak to zrobic ?

w login.lua znalazlem cos takiego ?

function onLogin(cid)
local otswe = {
tp_pos = {x = 32097, y = 32219, z = 7}
}

@@EDIT dobra ustwailem exp w config
staminaRatingLimitTop = 20 * 60
rateStaminaAboveNormal = 1.1
 
Last edited:
Back
Top