@Up
Ques does not work.
Time no working.
All time is 15 minutes
When I click "change" nothing is changed. Quest turns off.
The rest of the quest does not work at
quest change_item begin
state start begin
when 9003.take begin
if pc.getqf("change") <= 5 then
say_title(" change : ")
say("")
say(" Hello "..pc.name..". I can change your items ")
say(" If you want, I can change your old items to new")
say(" ")
say(" If you dont like it, always can you come back. ")
local s = select("Change", "Back")
if s == 2 then return end
pc.setqf("change", pc.getqf("change")+1)
local item = { 10, 11, 12, 13, 14, 15, 16 }
local itemsss = 0
for i = 1, table.getn(item) do
if item.get_vnum(item[i]) == item[i] then
itemsss = itemsss +1
pc.give_item2(71085, 10)
end
end
if itemsss == 0 then
syschat(" This items can`t be change ")
end
else
pc.setqf("change", get_global_time()+60*15) -- 15 minutes
local time2 = pc.getqf("change") - get_global_time()
local time = time2/60
local min = math.floor(time)
syschat(" change can possible "..time.." minutes ")
if get_global_time() > pc.getqf("change") then
pc.setqf("change", 0)
end
end
end
end
end