silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 211
hello folks, I can't figure out what is happening...
so, I use otservbr, or whatever, same with tfs 1.2
I want to chance some msg of loot with a chance...
the script that calculate the chance...
I'm getting this error, yesterday this sh*t works fine, but today don't? WHY?
so, I use otservbr, or whatever, same with tfs 1.2
I want to chance some msg of loot with a chance...
Code:
local text = {}
msgLoot = {}
if self:getName():lower() == (Game.getBoostedCreature()):lower() then
text = ("Loot of %s: %s (boosted loot)"):format(mType:getNameDescription(), corpse:getContentDescription())
else
text = (msgLoot):format(mType:getNameDescription(), corpse:getContentDescription())
end
Code:
local pob = math.random(0, 100)
if (prob < 20) then
msgLoot = "Saque bla bla bla %s: %s ("
break
else
msgLoot = "Loot of %s: %s"
end
I'm getting this error, yesterday this sh*t works fine, but today don't? WHY?