Lais Prad
Disgusting Scammer
- Joined
- Apr 12, 2017
- Messages
- 153
- Solutions
- 6
- Reaction score
- 15
Hello, I got an error in line 92 on screen, someone can help?
Script:
tfs 1.2
line 91: local reward = lionrock.rewards[math.random(0, #lionrock.rewards - 1)]
line 92: count = reward.count and reward.count or 1
lib:
Script:
tfs 1.2
line 91: local reward = lionrock.rewards[math.random(0, #lionrock.rewards - 1)]
line 92: count = reward.count and reward.count or 1
lib:
Lua:
lionrock = {
items = {
nflower = 23759,
flower = 23760,
holywater = 23835,
tongue = 10551,
scroll = 25521,
ruby = 2147,
sapphire = 2146,
amethyst = 2150,
topaz = 9970,
rewardfountain = 6390,
redflame = 1488,
yellowflame = 1500,
blueflame = 8058,
violetflame = 7473
},
-- For information only..
actionIds = {
getFlower = 41354,
getWater = 41355,
getScroll = 41356,
},
storages = {
getFlower = 50881,
usedFlower = 50882,
getHolyWater = 50883,
usedHolyWater = 50884,
usedTongue = 50885,
getScroll = 50886,
firstMysticEnter = 50887,
translation1 = 50888,
translation2 = 50889,
translation3 = 50890,
translation4 = 50891,
playerCanDoTasks = 50892,
},
positions = {
ruby = { x = 33069, y = 32298, z = 9 },
sapphire = { x = 33069, y = 32302, z = 9 },
amethyst = { x = 33077, y = 32302, z = 9 },
topaz = { x = 33077, y = 32298, z = 9 },
},
-- Global Variaables used in all situations;
taskactive = {
ruby = false,
sapphire = false,
amethyst = false,
topaz = false
},
rewards = {
{ id = 23810}, -- Lion's heart
{ id = 9971 }, -- Gold ingot
{ id = 2154 }, -- Yellow gem
{ id = 2156 }, -- Red gem
{ id = 2127 }, -- Emerlad bangle
{ id = 7633 }, -- Giant shimmering pearl
},
~~~~~