Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. func int C_PlayerIsFakeBandit (var C_NPC slf, var C_NPC oth)
  2. {
  3. var C_Item itm;
  4.  
  5. if (slf.aivar [AIV_IgnoresArmor] == TRUE)
  6. {
  7. return FALSE;
  8. };
  9.  
  10. if (slf.aivar [AIV_IgnoresFakeGuild] == TRUE)
  11. {
  12. return FALSE;
  13. };
  14.  
  15. if slf.guild == GIL_PIR
  16. {
  17. return FALSE;
  18. };
  19.  
  20.  
  21. if (Npc_HasEquippedArmor (oth) == TRUE)
  22. {
  23. itm = Npc_GetEquippedArmor(oth);
  24. if ((Hlp_IsItem(itm, ITAR_BDT_M) == TRUE)
  25. || (Hlp_IsItem (itm, ItAR_Thorus_Addon) == TRUE)
  26. || (Hlp_IsItem (itm, ITAR_BDT_H) == TRUE))
  27. {
  28. return TRUE;
  29. }
  30. else
  31. {
  32. RETURN FALSE;
  33. };
  34. }
  35. else if slf.guild == GIL_BDT
  36. && CurrentLevel == ADDONWORLD_ZEN
  37. && Player_HasTalkedToBanditCamp == TRUE
  38. {
  39. return TRUE;
  40. }
  41. else
  42. {
  43. return FALSE;
  44. };
  45.  
  46. if Npc_IsPlayer (self)
  47. && oth.guild == GIL_MIL
  48. && CASSIA_MELCHIORDEAD == TRUE
  49.  
  50. {
  51. return TRUE;
  52. };
  53.  
  54. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement