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

Lua BONUS EXP PER STORAGE TFS 0.4

Izaack

Member
Joined
Jun 18, 2012
Messages
70
Solutions
1
Reaction score
17
Location
México
Hi otland, I need a script that increases 1% of experience for each storage stored, an example storage xxxx,1 = 1% more experience and if the storage increases to 2 then it would be 2% more exp and so on until the storage is 100 well It would be double the exp you would get.

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = 40000

if isPlayer then
setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage)+1)
doCreatureSay(cid, "Congrats!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 28)
doRemoveItem(item.uid,1)
end
return TRUE
end

this my script :D

Thank you, I hope you can help me :)
 
use this script:

just change:
doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*1.2)

to:
doPlayerSetExperienceRate(cid, getPlayerStorageValue(cid, 40000))

and to increase experience rate you just need to increase the storage value of storage id 40000
 
Back
Top