>
[Only registered and activated users can see links. Click Here To Register...]
I needed ~ 2min 30s for this :D
PHP Code:
quest cookie begin
state start begin
when 12345.click begin
local item = 1234
say("Hello, "..pc.get_name()..".")
say "So you want to go on Map XXX?"
local count = pc.count_item(item)
if count > 0 then
say "Your item will go away!"
if select("Yes","no") == 1 then
if pc.count_item(item) == count then
say "Okay , i'll warp you."
pc.remove_item(item,1) -- remove item
wait()
pc.warp(123,456)
else
say "Buguser!!"
end
else
say "Bye"
end
else
say("You need this item:")
say_item(item)
end
end
end
end
The same, just a little bit shorter .. hehehe :p
PHP Code:
quest cookie begin
state start begin
when 12345.click begin
local item = 1234
local count = pc.count_item(item)
say("Hello, "..pc.get_name()..".[ENTER]So you want to go on Map XXX?[ENTER]"..(count>0 and "Your item will go away!" or "You need this item:[ENTER]"..item_name(item)))
if count > 0 and select("Yes","No") == 1 and count == pc.count_item(item) then
say "Okay , i'll warp you."
pc.remove_item(item,1) -- remove item
wait()
pc.warp(123,456)
end
end
end
end
Next time, ask in the thread i noticed before!!