SHARE
TWEET

Npc Morte Final

a guest Apr 28th, 2015 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. OnPCDieEvent:
  2.  
  3. sleep2 500;
  4.  
  5.  
  6. if(countitem(7420)<1)goto l_semitem;
  7. delitem 7420,1;
  8. atcommand "@alive "+ strcharinfo(0);
  9. end;
  10.  
  11.  
  12.  
  13.  
  14.  
  15. l_semitem:     
  16.         message strcharinfo(0),"Game Over";
  17.         sleep2 5000;
  18.         set .@deadplayer,getcharid(0);
  19.         atcommand "@kick "+strcharinfo(0);
  20.         set .@j, getarraysize( .char_delete$ );
  21.        
  22. for(set .@i,1; .@i < .@j; set .@i,.@i+1){
  23.  
  24.     query_sql("DELETE FROM `"+ .char_delete$[.@i] +"` WHERE `char_id` = '"+ .@deadplayer +"'");
  25.         }
  26.         query_sql "DELETE FROM `party` WHERE `leader_char` = '"+.@deadplayer+"'";
  27.         end;
  28.        
  29. OnInit:
  30. setarray .char_delete$[0],"bonus_script","char","cart_inventory","friends","global_reg_value","guild","guild_member","homunculus","hotkey","inventory","memo","mercenary","mercenary_owner","pet","quest","sc_data","skill";
  31. end;
  32.        
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top