elite*gold: 0
Join Date: Jul 2010
Posts: 827
Received Thanks: 153
|
Cannot reset Mage skill #95?
I have a reset scroll quest like this:
PHP Code:
quest reset_scroll begin state start begin when 71002.use begin say_title("Reset Scroll") say("You can use this scroll to") say("reset stats or skills.") say("") say("Want to proceed?") say("")
local s = select("Yes", "No") if 2 == s then return end
say_title("Choose your Type of reset!")
local l = select("Reset Skills", "Reset Stats", "Cancel!") if l == 1 then char_log(0, "RESET_ALL", "USE_ITEM(71002)") pc.remove_item(71002)
char_log(0, "RESET_ALL", "RESET_SKILL_POINTS") pc.clear_skill() pc.set_skill_group(0) char_log(0, "RESET_ALL", "RESET_END") elseif l == 2 then char_log(0, "RESET_ALL", "USE_ITEM(71002)") pc.remove_item(71002)
char_log(0, "RESET_ALL", "RESET_STAT_POINTS") pc.reset_point()
char_log(0, "RESET_ALL", "RESET_END") elseif l == 3 then return end end
when 71003.use begin
--- l say_title("Skills Redistribution") say_reward("You get no more than 17") say_reward("Skill points back!") say_reward("whether or not the the skill is higher! ")
local result = BuildSkillList(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("There are no skills!") say("") return end
say("What skill do you want to reset?") say("")
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("Skills Redistribution") say_reward("You can reset up 17 points maxium.") say(string.format("Reset %s?", name)) say("")
local s = select("Yes", "No") if 2 == s then return end
say_title("Skills Redistribution") say("Once reset, you cannot go back.") say("Nevertheless Reset?") say("")
local c = select("Yes", "No")
if 2 == c then return end
local val = pc.getqf("force_to_master_skill") if val > 0 then say_title("Redistribution of Skills: Success!") say("The skill was reset ") say("") say_reward("The skill will master at 17.") say("") return end
char_log(0, "RESET_ONE_SKILL", "USE_ITEM(71003)") pc.remove_item(71003)
char_log(0, "RESET_ONE_SKILL", string.format("RESET_SKILL[%s]", name)) pc.clear_one_skill(vnum)
char_log(0, "RESET_ONE_SKILL", "APPLY_17MASTER_BONUS") pc.setqf("force_to_master_skill", 1)
say_title("Redistribution skills: Completed!") say(string.format("%s Reset.", name)) say("")
say_reward("The skills redistribution is completed.") say("") end end end
When a player attempts to reset the mage skill "Reflect Damage" (also known as skill id 95), it says they reset it, but it does not use the scroll or reset the skill to 0 points.. What is going on here =S?
Nothing unusual in Channel1 syslog/syserr (the channel of the character), nothing unsual in ANY syserr/syslog.
(skill reset scroll translates to item = 71003)
Code:
Dec 2 08:23:14 :: MugenSX: USE_ITEM Bravery Cape (cell: 12)
Dec 2 08:23:16 :: WBR: USE_ITEM Red Potion(L) (cell: 22)
Dec 2 08:23:16 :: ITEM_SAVE Bravery Cape:10095977 in MugenSX window 1
Dec 2 08:23:16 :: WBR: USE_SKILL: 62 pkVictim 0x0
Dec 2 08:23:16 :: WBR: USE_ITEM Red Potion(L) (cell: 22)
Dec 2 08:23:17 :: Stefani: USE_ITEM Skill Reset Scroll (cell: 8)
Dec 2 08:23:17 :: WBR: USE_ITEM Red Potion(L) (cell: 22)
Dec 2 08:23:17 :: WBR: USE_ITEM Blue Potion(L) (cell: 24)
Dec 2 08:23:17 :: ITEM_DESTROY Blue Potion(L):10094649
Dec 2 08:23:18 :: WBR: USE_ITEM Blue Potion(L) (cell: 19)
Dec 2 08:23:18 :: WBR: USE_ITEM Red Potion(L) (cell: 22)
Dec 2 08:23:18 :: WBR: USE_ITEM Blue Potion(L) (cell: 19)
Database Skill 95:
Code:
95 ¹Ý»ç 4 1 1 0 REFLECT_MELEE 5+(iq*0.3 + 5)*k 40+160*k 60+200*k 10 5+(iq*0.3 + 5)*k BOHO NONE 40+160*k 0 0 NORMAL 1 1 1000 0
locale.lua skills formation:
Code:
locale.GM_SKILL_NAME_DICT = {
[1] = "Frenzy",
[2] = "Whirlwind",
[3] = "Berserk",
[4] = "Heroic Strike",
[5] = "Charging",
[16] = "Slash",
[17] = "Leap",
[18] = "Stomp",
[19] = "Might",
[20] = "Fury",
[31] = "Ghost Attack",
[32] = "Rapid Charge",
[33] = "Getaway",
[34] = "Stealth",
[35] = "Poison Nova",
[46] = "Begone",
[47] = "Multi Shot",
[48] = "Flame Arrow",
[49] = "Dance With Wind",
[50] = "Poison Arrow",
[61] = "Rupture",
[62] = "Dark Twister",
[63] = "Aura of Sword",
[64] = "Fear",
[65] = "Aphonic Shield",
[66] = "Remove Magic",
[76] = "Bloodrage",
[77] = "Dark Fire",
[78] = "Ritual of Doom",
[79] = "Aphotic Shield",
[80] = "Entangle",
[81] = "Shadow Bolt",
[91] = "Arc Thunder",
[92] = "Dragon Shadow",
[93] = "Dragon Shout",
[94] = "Dragon Shield",
[95] = "Reflect Damage",
[96] = "Enchant Damage",
[106] = "Lightning Lance",
[107] = "Lightning Strike",
[108] = "Chain Lightning",
[109] = "Natures Blessing",
[110] = "Speed of Wind",
[111] = "Natures Enchantment"
}
anyone?
|