Tipologie server(PvM / PvP): PvP
Resursă folosită: *Link exclusiv J4M*
ServerFiles utilizat: Owsap serverfiles 4.9.7.0 full
Syserr:
ABBC3_SPOILER_SHOW
SYSERR: Aug 18 20:09:31 :: RunState: LUA_ERROR: locale/europe/quest/multiLocale.lua:89: attempt to index global `skill_name' (a function value)
Detalii suplimentare:
Salutare !
Am probleme cu item Reset Abilitate (vnum 71003)


ABBC3_SPOILER_SHOW
Cod: Selectaţi tot
quest reset_scroll begin
state start begin
when 71002.use or 76001.use begin
say_title(gameforge[LC()][8004])
say(gameforge[LC()][8015])
local s = select(gameforge[LC()][2625], gameforge[LC()][2600])
if 2 == s then
return
end
say_title(gameforge[LC()][8024])
say(gameforge[LC()][8025])
local c = select(gameforge[LC()][2625], gameforge[LC()][2600])
if 2 == c then
return
end
char_log(0, "RESET_ALL", "USE_ITEM(71002 or 76001)")
item.remove()
char_log(0, "RESET_ALL", "RESET_STAT_POINTS")
pc.reset_point()
char_log(0, "RESET_ALL", "RESET_END")
end
when 71003.use or 39009.use begin
say_title(gameforge[LC()][8009])
say(gameforge[LC()][8027])
wait()
-- local result = BuildSkillList(pc.get_job(), pc.get_skill_group()) -- locale.lua
local result = BuildLocaleSkillList(pc.get_job(), pc.get_skill_group())
local vnum_list = result[1]
local name_list = result[2]
if table.getn(vnum_list) < 2 then
say_title(gameforge[LC()][8009])
say(gameforge[LC()][8028])
return
end
say_title(gameforge[LC()][8009])
say(gameforge[LC()][8029])
local i = select_table(name_list)
if table.getn(name_list) == i then
return
end
local name = name_list[i]
local vnum = vnum_list[i]
say_title(gameforge[LC()][8009])
say(gameforge[LC()][8030])
say_reward(string.format(gameforge[LC()][8005], name))
local s = select(gameforge[LC()][2625], gameforge[LC()][2600])
if 2 == s then
return
end
say_title(gameforge[LC()][8006])
say(gameforge[LC()][8007])
local c = select(gameforge[LC()][2625], gameforge[LC()][2600])
if 2 == c then
return
end
char_log(0, "RESET_ONE_SKILL", "USE_ITEM(71003)")
pc.remove_item(71003)
char_log(0, "RESET_ONE_SKILL", "RESET_SKILL[" .. name .. "]")
pc.clear_one_skill(vnum)
char_log(0, "RESET_ONE_SKILL", "APPLY_17MASTER_BONUS")
pc.setqf("force_to_master_skill", 1)
say_title(gameforge[LC()][8009])
say_reward(string.format(gameforge[LC()][8010], name))
end
end
end
ABBC3_SPOILER_SHOW
Cod: Selectaţi tot
-- BuildSkillList
function BuildLocaleSkillList(job, group)
local skill_vnum_list = {}
local skill_name_list = {}
if pc.get_skill_group() != 0 then
local skill_list = special.active_skill_list[job + 1][group]
table.foreachi( skill_list,
function(i, t)
local lev = pc.get_skill_level(t)
if lev > 0 then
-LINIA 89 local name = skill_name[t] -LINIA 89
if name != nil then
table.insert(skill_vnum_list, t)
table.insert(skill_name_list, name)
end
end
end
)
end
table.insert(skill_vnum_list, 0)
table.insert(skill_name_list, gameforge.locale.cancel)
return {skill_vnum_list, skill_name_list}
end




