Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Custom trigger
  2. function(event)
  3. local slotId = GetInventorySlotInfo("BackSlot");
  4. local link = GetInventoryItemLink("player", slotId);
  5.  
  6. if link == nil then
  7. return false;
  8. end
  9.  
  10. local itemId, enchantId = link:match("item:(%d+):(%d+):*");
  11.  
  12. if enchantId == "5436" then
  13. return true;
  14. end
  15. end
  16.  
  17. Custom Untrigger
  18.  
  19. function(event)
  20. local slotId = GetInventorySlotInfo("BackSlot");
  21. local link = GetInventoryItemLink("player", slotId);
  22.  
  23. if link == nil then
  24. return true;
  25. end
  26.  
  27. local itemId, enchantId = link:match("item:(%d+):(%d+):*");
  28.  
  29. if enchantId ~= "5436" then
  30. return true;
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement