So, I decided to add new weapons on my tibia, but something goes wrong. I'll put my lua on the spoiler.
Spoiler
},
[405] = {
name = "Aka Dragon Helmet",
desc = "Red Dragon helmet!",
r = 255, g = 0, b = 0,
action = "equip",
slot = 1,
level = 35
eimage = "gfx/weiwen1/bonehelm.png",
fimage = "gfx/weiwen1/bonehelm.png",
def = 30,
speed = 10,
func = equip,
},
[406] = {
name = "Aka Dragon Armor",
desc = "Aka Dragon! The anger of red dragon!
r = 255, g = 0, b = 0,
action = "equip",
slot = 2,
level = 35
eimage = "gfx/weiwen1/sphinx_armour.png",
fimage = "gfx/weiwen1/sphinx_armour.png",
def = 30,
speed = -2,
func = equip,
},
[407] = {
name = "Aka Dragon Shoes",
plural = "Wear it and sense the anger of red dragon!",
article = "a pair of",
r = 255, g = 0, b = 0,
action = "equip",
slot = 6,
level = 35,
fimage = "gfx/weiwen1/boneboots.png",
def = 2,
speed = 15,
func = equip,
},
[408] = {
name = "Aka Dragon Staff",
desc = "A magic staff that has the power of the fire dragon.",
r = 0, g = 255, b = 0,
action = "equip",
slot = 3,
twohand = true,
eimage = "gfx/weiwen1/lightning_staff.png",
fimage = "gfx/weiwen1/lightning_staff.png",
offsety = 9,
equip = 75,
atk = 40,
speed = 8,
func = equip,
[405] = {
name = "Aka Dragon Helmet",
desc = "Red Dragon helmet!",
r = 255, g = 0, b = 0,
action = "equip",
slot = 1,
level = 35
eimage = "gfx/weiwen1/bonehelm.png",
fimage = "gfx/weiwen1/bonehelm.png",
def = 30,
speed = 10,
func = equip,
},
[406] = {
name = "Aka Dragon Armor",
desc = "Aka Dragon! The anger of red dragon!
r = 255, g = 0, b = 0,
action = "equip",
slot = 2,
level = 35
eimage = "gfx/weiwen1/sphinx_armour.png",
fimage = "gfx/weiwen1/sphinx_armour.png",
def = 30,
speed = -2,
func = equip,
},
[407] = {
name = "Aka Dragon Shoes",
plural = "Wear it and sense the anger of red dragon!",
article = "a pair of",
r = 255, g = 0, b = 0,
action = "equip",
slot = 6,
level = 35,
fimage = "gfx/weiwen1/boneboots.png",
def = 2,
speed = 15,
func = equip,
},
[408] = {
name = "Aka Dragon Staff",
desc = "A magic staff that has the power of the fire dragon.",
r = 0, g = 255, b = 0,
action = "equip",
slot = 3,
twohand = true,
eimage = "gfx/weiwen1/lightning_staff.png",
fimage = "gfx/weiwen1/lightning_staff.png",
offsety = 9,
equip = 75,
atk = 40,
speed = 8,
func = equip,
What's the problem?