• 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!

Scroll double exp

Cretino1

New Member
Joined
Oct 24, 2015
Messages
1
Reaction score
0
hi i need a script to scrool of exp for tfs 1.2 i search in forum but not found this
please help-me very thansk!

"Ex: 2X
for: 1 hour"
 
Hello teste this:

PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
removeOnUse = "yes" -- remover quando usar ("yes" or "no")
}
local days = 1 -- dias que serão adicionados
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, 1234)
local timenow = os.time()
if getPlayerStorageValue(cid, 1234) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dia de Double EXP no seu character.")
setPlayerStorageValue(cid, 1234, time)
local quantity = math.floor((getPlayerStorageValue(cid, 1234) - timenow)/(24 * 60 * 60))
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce tem ".. quantity .." dias de Double EXP restantes.")
if (config.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
return TRUE
end



I NEED THE SCROLL DOUBLE TO TFS 1.0 (I think is 1.0) Who can help me? ;S
 
Back
Top