Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. class 1 prison_tree: citizen {
  2. handler:
  3. EventHandler MY_DYING (always_list, c1, code_info, i9, last_attacker, lparty, member, random1_list, target, weapon_class_id)
  4.     {
  5.          c1 = myself :: GetLastAttacker ();
  6.          if (myself.sm.last_blow_weapon_class_id == 30027 && myself :: OwnItemCount (c1,20002) == 0)
  7.          {
  8.               myself :: DeleteItem1 (c1,30027,1);
  9.             myself :: GiveItem1 (c1,20002,1);
  10.             if (c1.karma> 10) {
  11.                c1.karma = c1.karma-10;  
  12.             }
  13.             else c1.karma = 0
  14.          }
  15.     super;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement