Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----------------------------------------------------
- -- Quest Check items --
- -- [RaffaeL] - 28.05.2019 --
- -- VERIFICA ITEMELE ECHIPATE --
- -- SI RETURNEAZA JUCATORUL IN PRIMA HARTA --
- -- IN CAZUL IN CARE CONDITIA IMPUSA ESTE ADEVARATA --
- -----------------------------------------------------
- quest banned_item_check begin
- state start begin
- function Check_items()
- local mapIndex = {63, 113, 114} -- aici adaug map_index pentru hartile in care vrei sa actioneze
- local wearPos = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 19, 20, 21, 22} -- aici nu se modifica
- local blockedItems = {
- 11209, 11409, 11609, 11809,
- 10, 19, 180, 189
- } -- codul itemelor care vor fi blocate
- for m = 1, table.getn(mapIndex), 1 do
- for i = 1, table.getn(blockedItems), 1 do
- for w = 1, table.getn(wearPos), 1 do
- if (pc.get_map_index(mapIndex[m]) == true) then
- if (pc.get_wear(wearPos[w]) == blockedItems[i]) then
- chat("Ai echipate iteme care sunt interzise in aceasta harta")
- if (pc.get_sex() == 0) then
- chat("Vei fi teleportat in prima harta a regatului tau.")
- else
- chat("Vei fi teleportata in prima harta a regatului tau.")
- end
- warp_to_village()
- return
- end
- end
- end
- end
- end
- return mapIndex, wearPos, blockedItems
- end
- when login or enter begin
- local t = 5
- loop_timer("ITEM_CHECK", t)
- banned_item_check.Check_items()
- end
- when ITEM_CHECK.timer begin
- banned_item_check.Check_items()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement