Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest check_potions begin
- state start begin
- function potionCheck()
- mapIndex = {63, 113, 114} -- indexul mapei in care actioneaza
- ePot = {
- 72725, 72726, 72727, 72728, 72729, 72730
- }
- for m = 1, table.getn(mapIndex), 1 do
- for p = 1, table.getn(ePot), 1 do
- if (pc.get_map_index() == mapIndex[m]) then
- if (pc.count_item(ePot[p]) >=1) then
- chat("Nu poti intra in aceasta harta cu elixire in inventar")
- warp_to_village()
- end
- end
- end
- return mapIndex, ePot
- end
- when login or enter begin
- local t = 5
- loop_timer("pot_check", t)
- check_potions.potionCheck()
- end
- when pot_check.timer begin
- check_potions.potionCheck()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment