Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. local ItemID_Waiguan = GetItemID ( Item_Waiguan )
  2. local ItemID_L = GetItemID ( Item_Waiguan )
  3. local ItemID_R = GetItemID ( Item_Shuxing )--update and test try
  4. --SystemNotice( role ,"ItemID l = "..ItemID_L.."ItemID_wai= "..ItemID_Waiguan)--tell me whats the problem? the problem is, if wrong slot, the eq and gem will be gone. ok what the wright apperal slot? left
  5. if ItemID_Waiguan <= 4999 or ItemID_Waiguan >= 7200 then
  6. SystemNotice( role ,"Item cannot determined attribute")
  7. return 0
  8. end
  9. local Fused_L = GetItemAttr( Item_Waiguan , ITEMATTR_VAL_FUSIONID )
  10. if (ItemID_R <= 4999 and ItemID_R >= 7200) or Fused_L ~= 0 then
  11. SystemNotice( role ,"Wrong Slot, make sure your eq in right slot!")
  12. return 0
  13. end
  14. --------ÍâąŰµŔľßÄÍľĂĹжĎ
  15. local Item_URE = GetItemAttr ( Item_Waiguan , ITEMATTR_URE )
  16. local Item_MAXENERGY = GetItemAttr ( Item_Waiguan , ITEMATTR_MAXENERGY )
  17. if Item_URE < Item_MAXENERGY then
  18. SystemNotice( role ,"Armors have not reach the durability limit, cannot assign attribute")
  19. return 0
  20. end
  21. --------×îłőÍâąŰµŔľßĹжĎ
  22. local Item_FUSIONID_star = GetItemAttr ( Item_Shuxing , ITEMATTR_VAL_FUSIONID )
  23. local ItemID_shuxing_star = GetItemID ( Item_Shuxing )
  24. if Item_FUSIONID_star ==1 and ItemID_shuxing_star>=7200 then
  25. SystemNotice( role ,"Equipment on right slot has not attribute. Unable to fuse!")
  26. return 0
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement