Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class 1 prison_tree: citizen {
- handler:
- EventHandler MY_DYING (always_list, c1, code_info, i9, last_attacker, lparty, member, random1_list, target, weapon_class_id)
- {
- c1 = myself :: GetLastAttacker ();
- if (myself.sm.last_blow_weapon_class_id == 30027 && myself :: OwnItemCount (c1,20002) == 0)
- {
- myself :: DeleteItem1 (c1,30027,1);
- myself :: GiveItem1 (c1,20002,1);
- if (c1.karma> 10) {
- c1.karma = c1.karma-10;
- }
- else c1.karma = 0
- }
- super;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement