Quest load fail

09/08/2013 14:23 Jovanymha#1
Hello epvp ,

when i run the quests from freebsd , no error . when i start the server and enter game , some quests work , some wont.

SYSERR: Sep 8 08:03:42 :: RunState: LUA_ERROR: locale/germany/quest/questlib.lua:1786: attempt to index local `rgb' (a nil value)
SYSERR: Sep 8 08:03:42 :: WriteRunningStateToSyserr: LUA_ERROR: quest itemgivelogin.start letter


Thats what i am getting , and i tried editing questlib.lua , but they say permission denied ( permission is 777 , and root is the owner )

Any Help? thanks
09/08/2013 14:26 .Xilent#2
Can you post your questlib.lua (only the lines between 1750 ~ 1725 are needed) and the quest itemgivelogin.start ?
09/08/2013 14:42 Jovanymha#3
Quest Lib :

Quote:
function say_color(color, text)
local rgb = rawget(colors_data, color)
say(color256(rgb[1],rgb[2],rgb[3])..text..color256(colors_data.default[1], colors_data.default[2], colors_data.default[3]))
end

function set_text_color(color)
local rgb = rawget(colors_data, color)
raw_script(color256(rgb[1],rgb[2],rgb[3]))
end

colors_data = {
['green'] = {0,190,0},
['light green'] = {0,255,0},
['dark green'] = {0,110,0},
['semi light green'] = {144,238,144},
['teal'] = {102,205,170},
['red'] = {240,0,0},
['semi light red'] = {255,69,51},
['rose'] = {255,64,160},
['dark rose'] = {255,0,128},
['light rose'] = {255,182,193},
['light orange'] = {255,127,80},
['orange'] = {255,130,0},
['dark orange'] = {255,90,0},
['semi dark violet'] = {255,0,255},
['violet'] = {224,129,255},
['dark violet'] = {148,0,148},
['light violet'] = {200,162,200},
['brown'] = {161,63,0},
['dark brown'] = {120,66,0},
['light brown'] = {200,164,115},
['yellow'] = {255,255,53},
['light yellow'] = {255,255,128},
['gold'] = {255,191,24},
['blue'] = {0,0,250},
['dark blue'] = {0,0,150},
['cyan'] = {128,255,255},
['light cyan'] = {180,255,255},
['turquoise'] = {0,255,255},
['white'] = {255,255,225},
['gray'] = {128,128,128},
['black'] = {0,0,0},
['default'] = {196,196,196}
}
itemgivelogin.quest

Quote:
quest itemgivelogin begin
state start begin
when login begin
if pc.getqf("basic_weapon") == 0 then
pc.setqf("basic_weapon", 1)

if pc.job == 0 then
pc.changemoney(2500000) -- give money 5Mil
pc.give_item2(27003, 200) -- red potions
pc.give_item2(27006, 200) -- blue potion
pc.give_item2(27102, 20) -- green potion
pc.give_item2(27105, 20) -- purple potion
pc.give_item2(99003, 1) -- Information Item
pc.give_item2(50051, 1) -- Horse Sword
pc.give_item2(70038, 200) -- Bravery Cape
pc.give_item2(71027, 20) -- Dragon God Life
pc.give_item2(71028, 20) -- Dragon God Attack
pc.give_item2(71029, 20) -- Dragon God Intelligence
pc.give_item2(71030, 20) -- Dragon God Defence
pc.give_item2(71044, 20) -- Palm of Critical
pc.give_item2(71045, 20) -- Palm of Pierce
pc.give_item2(72702, 1) -- Shoes of Wind +
pc.give_item2(19) -- Warrior starter items
pc.give_item2(11209) -- Warrior starter items
pc.give_item2(12209) -- Warrior starter items
pc.give_item2(13009) -- Warrior starter items
pc.give_item2(14009) -- Warrior starter items
pc.give_item2(15009) -- Warrior starter items
pc.give_item2(16009) -- Warrior starter items
pc.give_item2(17009) -- Warrior starter items
pc.give_item2(40002) -- Warrior starter items


say_title(" Worldwide Entertainment ,Gives you a very warm welcome "..pc.get_name().."")
set_text_color("yellow")
say("")
say("You have now received full start package!")
say("")
set_text_color("red")
say("Server INFORMATION")
say("English in shout ONLY!")
say("Do NOT kill players near shops/npc!")
say("Kill players from other kingdom in pvm is ALLOWED!")
say("Kill players from your kingdom in pvm is NOT ALLOWED!")
say("")
set_text_color("Red")
say("If you find any bugs")
say("Please contact us")
say("See you around! Have FUN.!")

elseif pc.job == 1 then
pc.changemoney(2500000) -- give money 5Mil
pc.give_item2(27003, 200) -- red potions
pc.give_item2(27006, 200) -- blue potion
pc.give_item2(27102, 20) -- green potion
pc.give_item2(27105, 20) -- purple potion
pc.give_item2(99003, 1) -- Information Item
pc.give_item2(50051, 1) -- Horse Sword
pc.give_item2(70038, 200) -- Bravery Cape
pc.give_item2(71027, 20) -- Dragon God Life
pc.give_item2(71028, 20) -- Dragon God Attack
pc.give_item2(71029, 20) -- Dragon God Intelligence
pc.give_item2(71030, 20) -- Dragon God Defence
pc.give_item2(71044, 20) -- Palm of Critical
pc.give_item2(71045, 20) -- Palm of Pierce
pc.give_item2(72702, 1) -- Shoes of Wind +
pc.give_item2(1009) -- Ninja starter items
pc.give_item2(11406) -- Ninja starter items
pc.give_item2(12346) -- Ninja starter items
pc.give_item2(13006) -- Ninja starter items
pc.give_item2(14006) -- Ninja starter items
pc.give_item2(15006) -- Ninja starter items
pc.give_item2(16006) -- Ninja starter items
pc.give_item2(17006) -- Ninja starter items
pc.give_item2(40002) -- Warrior starter item


say_title("Worldwide Entertainment ,Gives you a very warm welcome "..pc.get_name().."")
set_text_color("yellow")
say("")
say("You have now received full start package!")
say("")
say("Server INFORMATION")
say("English in shout ONLY!")
say("Do NOT kill players near shops/npc!")
say("Kill players from other kingdom in pvm is ALLOWED!")
say("Kill players from your kingdom in pvm is NOT ALLOWED!")
say("")
say("If you find any bugs")
say("Please contact us")
say("See you around! Have FUN.!")

elseif pc.job == 2 then
pc.changemoney(2500000) -- give money 5Mil
pc.give_item2(27003, 200) -- red potions
pc.give_item2(27006, 200) -- blue potion
pc.give_item2(27102, 20) -- green potion
pc.give_item2(27105, 20) -- purple potion
pc.give_item2(99003, 1) -- Information Item
pc.give_item2(50051, 1) -- Horse Sword
pc.give_item2(70038, 200) -- Bravery Cape
pc.give_item2(71027, 20) -- Dragon God Life
pc.give_item2(71028, 20) -- Dragon God Attack
pc.give_item2(71029, 20) -- Dragon God Intelligence
pc.give_item2(71030, 20) -- Dragon God Defence
pc.give_item2(71044, 20) -- Palm of Critical
pc.give_item2(71045, 20) -- Palm of Pierce
pc.give_item2(72702, 1) -- Shoes of Wind +
pc.give_item2(19) -- Sura starter items
pc.give_item2(11606) -- Sura starter items
pc.give_item2(12486) -- Sura starter items
pc.give_item2(13006) -- Sura starter items
pc.give_item2(14006) -- Sura starter items
pc.give_item2(15006) -- Sura starter items
pc.give_item2(16006) -- Sura starter items
pc.give_item2(17006) -- Sura starter items
pc.give_item2(40002) -- Warrior starter items


say_title("Worldwide Entertainment ,Gives you a very warm welcome "..pc.get_name().."")
set_text_color("yellow")
say("")
say("You have now received full start package!")
say("")
say("Server INFORMATION")
say("English in shout ONLY!")
say("Do NOT kill players near shops/npc!")
say("Kill players from other kingdom in pvm is ALLOWED!")
say("Kill players from your kingdom in pvm is NOT ALLOWED!")
say("")
say("If you find any bugs")
say("Please contact us")
say("See you around! Have FUN.!")

elseif pc.job == 3 then
pc.changemoney(2500000) -- give money 5Mil
pc.give_item2(27003, 200) -- red potions
pc.give_item2(27006, 200) -- blue potion
pc.give_item2(27102, 20) -- green potion
pc.give_item2(27105, 20) -- purple potion
pc.give_item2(99003, 1) -- Information Item
pc.give_item2(50051, 1) -- Horse Sword
pc.give_item2(70038, 200) -- Bravery Cape
pc.give_item2(71027, 20) -- Dragon God Life
pc.give_item2(71028, 20) -- Dragon God Attack
pc.give_item2(71029, 20) -- Dragon God Intelligence
pc.give_item2(71030, 20) -- Dragon God Defence
pc.give_item2(71044, 20) -- Palm of Critical
pc.give_item2(71045, 20) -- Palm of Pierce
pc.give_item2(72702, 1) -- Shoes of Wind +
pc.give_item2(7009) -- Mage starter items
pc.give_item2(11806) -- Mage starter items
pc.give_item2(12626) -- Mage starter items
pc.give_item2(13006) -- Mage starter items
pc.give_item2(14006) -- Mage starter items
pc.give_item2(15006) -- Mage starter items
pc.give_item2(16006) -- Mage starter items
pc.give_item2(17006) -- Mage starter items
pc.give_item2(40002) -- Warrior starter items

say_title("Worldwide Entertainment ,Gives you a very warm welcome "..pc.get_name().."")
set_text_color("yellow")
say("")
say("You have now received full start package!")
say("")
say("Server INFORMATION")
say("English in shout ONLY!")
say("Do NOT kill players near shops/npc!")
say("Kill players from other kingdom in pvm is ALLOWED!")
say("Kill players from your kingdom in pvm is NOT ALLOWED!")
say("")
say("If you find any bugs")
say("Please contact us")
say("See you around! Have FUN.!")

end
end
end
end
end
Up