yuhsing

Untitled

Mar 29th, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // inside atcommand.c
  2.  
  3. /*======
  4. * @buff
  5. *-----------*/
  6. int atcommand_newplayer(const int fd, struct map_session_data *sd, const char *command, const char *message)
  7. {
  8. nullpo_retr(-1,sd);
  9. npc_event(sd,"Freebies::OnAtCommand",0);
  10. return 0;
  11. }
  12.  
  13.  
  14. // very bottom of atcommand.c part.
  15. { "newplayer", 0,0, atcommand_newplayer },
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. // inside NPC script
  27.  
  28. - script Freebies -1,{
  29. OnAtCommand:
  30. if( #new_player ){
  31. mes "You already took the Freebies.";
  32. }else{
  33. #new_player = 1;
  34. getitem 512,1;
  35. getitem 512,1;
  36. getitem 512,1;
  37. getitem 512,1;
  38. }
  39. end;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment