Daca ma poate ajuta cineva ...
QUEST:
Cod: Selectaţi tot
quest runy begin
state start begin
when 101101.use begin
local runy_info = {
--slot1
[101101] = {1,1,15,10},
}
if pc.getqf("r"..runy_info[item.get_vnum()][1].."") > 0 then
syschat("Nie mo¿esz u¿yæ kolejnej runy, maj¹c ju¿ jedn¹ na stronie.")
syschat("Mo¿esz wyj¹æ runê z tego slotu je¿eli klikniesz na ni¹ PPM. ")
else
syschat("Umieœci³eœ runê "..runy_info[item.get_vnum()][2]..". poziomu na "..runy_info[item.get_vnum()][1]..". slocie.")
pc.setqf("r"..runy_info[item.get_vnum()][1].."", 1)
pc.setqf("r"..runy_info[item.get_vnum()][1].."id", item.get_vnum())
pc.setqf("r"..runy_info[item.get_vnum()][1].."bid", runy_info[item.get_vnum()][3])
pc.setqf("r"..runy_info[item.get_vnum()][1].."bw", runy_info[item.get_vnum()][4])
local runy_czas = 60*60*24*30*60
affect.add_collect(pc.getqf("r"..runy_info[item.get_vnum()][1].."bid"), pc.getqf("r"..runy_info[item.get_vnum()][1].."bw"), runy_czas)
item.remove()
cmdchat("runy_data "..pc.getqf("r1id").."|"..pc.getqf("r2id").."|"..pc.getqf("r3id").."|"..pc.getqf("r4id").."|"..pc.getqf("r5id").."|"..pc.getqf("r6id").."|"..pc.getqf("r7id").."")
cmdchat("runy_pokaz")
end
end
when login begin
cmdchat("runyq "..q.getcurrentquestindex())
end
when button or info begin
cmdchat("runy_data "..pc.getqf("r1id").."|"..pc.getqf("r2id").."|"..pc.getqf("r3id").."|"..pc.getqf("r4id").."|"..pc.getqf("r5id").."|"..pc.getqf("r6id").."|"..pc.getqf("r7id").."")
cmdchat("runy_pokaz")
end
end
end 


