Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- QUIVER_ITEMS = {12425}
- ARROW_ITEMS = {
- [2543] = 1, -- bolt
- [2544] = 2, -- arrow
- [2545] = 5, -- poison arrow
- [2546] = 6, -- burst arrow
- [2547] = 13, -- power bolt
- [6529] = 15, -- infernal bolt
- [7364] = 21, -- sniper arrow
- [7365] = 22, -- onyx arrow
- [7363] = 23, -- piercing bolt
- [7838] = 32, -- flash arrow
- [7840] = 33, -- flaming arrow
- [7839] = 34, -- shiver arrow
- [7850] = 39, -- earth arrow
- [15648] = 43, -- tarsal arrow
- [15649] = 44, -- vortex bolt
- [18435] = 47, -- prismatic bolt
- [18304] = 48, -- crystalline arrow
- [18436] = 49, -- drill bolt
- [18437] = 50, -- envenomed arrow
- }
- <event type="moveitem" name="onThrow" event="script" value="throw.lua"/>
- function onMoveItem(cid, item, count, toContainer, fromContainer, fromPosition, toPosition)
- if toContainer and isInArray(QUIVER_ITEMS, toContainer.itemid) then
- if not ARROW_ITEMS[item.itemid] then
- return false
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement