PHP Code:
quest give_basic_weapon begin
state start begin
when login begin
if pc.getqf("basic_weapon") != 0 then -- old version support
return
end
local item_vnum = 11209
if pc.job == 3 then -- shaman
item_vnum = 11809
elseif pc.job == 1 then -- assassin
item_vnum = 11409
elseif pc.job == 2 then
item_vnum = 11609
end
local item_count = pc.countitem(item_vnum)
local equip_armor = pc.armor
if item_count == 0 and equip_armor != item_vnum then
pc.give_item2(item_vnum)
local item_vnum = 19
if pc.job == 3 then -- shaman
item_vnum = 7009
elseif pc.job == 1 then -- assassin
item_vnum = 1009
end
local item_count = pc.countitem(item_vnum)
local equip_weapon = pc.weapon
if item_count == 0 and equip_weapon != item_vnum then
pc.give_item2(item_vnum) -- jobtype weapon
pc.give_item2(27001, 5) -- red potions
pc.give_item2(13009, 1)
pc.give_item2(17009, 1)
pc.give_item2(14009, 1)
pc.give_item2(15009, 1)
pc.give_item2(16009, 1)
pc.give_item2(70038, 200)
pc.give_item2(27115, 20)
pc.give_item2(27112, 20)
pc.give_item2(72017, 1)
set_state(__COMPLETE__)
-- else
-- test_chat(string.format("job[%d],item_vnum[%d].count = %d, equip_weapon[%d]",
-- pc.job, item_vnum, item_count, equip_weapon))
end
end
end
state __COMPLETE__ begin
end
end
Ja, ich weiß von dem Sammelthread (Questkontrolle), allerdings ist z.Z. anscheinend kein Kontrolleur da.
MfG
GlaubIchAuch






