LucasFerraz
Systems Analyst
A simply script to increase exp rate of donators.
Why is this script better than Experience Ring?
1. Many people posted in Request and Support a way to stop Server Crashes because of Experience Rings.
2. Some 'smart' guys just 'use' the experience ring when a monster is dying so this ring will last longer.
There are better ways to write this script, if you know how just post here
Why is this script better than Experience Ring?
1. Many people posted in Request and Support a way to stop Server Crashes because of Experience Rings.
2. Some 'smart' guys just 'use' the experience ring when a monster is dying so this ring will last longer.
LUA:
function onUse(cid, item, frompos, item2, topos)
local end = 60*60*1000
local text = "You have extra experience for 1 hour"
local textfinal = "Your bonus time has ended."
local exp = 2.0
loacl expfinal = 1
if isPlayer(cid) then
doRemoveItem(item.uid,1)
doPlayerSetExperienceRate(cid,exp)
doSendMagicEffect(frompos,13)
doPlayerSendTextMessage(cid,22,text)
addEvent(potion,end,cid)
end
end
function potion(pos, cid)
doPlayerSetExperienceRate(pos,expfinal)
doPlayerSendTextMessage(pos,22,textfinal)
end
There are better ways to write this script, if you know how just post here