PHP Code:
50196 ºÓÀº ÀÚ°³ ¼±¹°»óÀÚ Grand Master Chest 18 0 0 1 237952 0 0 0 0 0 0 0 0 1 90 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 0 0 0
PHP Code:
50212 ºÓÀº ÀÚ°³ ¼±¹°»óÀÚ Apprentice Chest I 18 0 0 1 237952 0 0 0 0 0 0 0 0 1 100 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 -1 -1 -1 -1 -1 0 0 0
Quest:
PHP Code:
quest levelup_boxes begin
state start begin
when login begin
pc.give_item2(50187)
set_state(run)
end
end
state run begin
when 50187.use or 50188.use or 50189.use or 50190.use or 50191.use or 50192.use or 50193.use or 50194.use or 50195.use or 50196.use or 50212.use or 50213.use begin
local weapon = 10
if pc.job == 3 then
weapon = 7000
elseif pc.job == 1 then
weapon = 1000
end
local box_num = item.vnum-50186
local rewards = {
{1,6,50188,1,weapon,1,76004,1,76021,1,76012,20,76018,20},
{10,5,50189,1,76007,5,76011,1,76003,10,76006,1},
{20,5,50190,1,76005,1,76022,1,76000,200,76008,10},
{30,5,50191,1,76013,200,76014,200,76015,1,71107,1},
{40,5,50192,1,72724,1,72728,1,76020,20,71081,5},
{50,5,50193,1,71020,10,27987,10,72725,1,72729,1},
{60,5,50194,1,50513,30,27992,1,27993,1,27994,1},
{70,5,50195,1,72726,1,72730,1,71161,1,50135,1},
{80,5,50196,1,71043,1,71082,10,71017,1,30319,5},
{90,4,50212,1,70004,1,38050,1,76000,200},
{100,4,50213,1,71153,1,38055,1,70056,200},
{105,3,71148,1,71149,1,70056,200},
}
if rewards[box_num][1] == nil then
syschat("The seal on this chest is too strong. No matter what you do, it won't budge.")
elseif pc.get_level() < rewards[box_num][1] then
syschat("Your Level does not suffice to open this box.")
elseif pc.get_empty_inventory_count() < rewards[box_num][2] then
syschat("You do not have enough free inventory space to open this box.")
else
for i = 1,rewards[box_num][2],1 do
pc.give_item2(rewards[box_num][3+2*(i-1)],rewards[box_num][4+2*(i-1)])
end
item.remove()
end
end
end
end
Nothing comes in my mind.
Please help !
UP!






