Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // inside atcommand.c
- /*======
- * @buff
- *-----------*/
- int atcommand_newplayer(const int fd, struct map_session_data *sd, const char *command, const char *message)
- {
- nullpo_retr(-1,sd);
- npc_event(sd,"Freebies::OnAtCommand",0);
- return 0;
- }
- // very bottom of atcommand.c part.
- { "newplayer", 0,0, atcommand_newplayer },
- // inside NPC script
- - script Freebies -1,{
- OnAtCommand:
- if( #new_player ){
- mes "You already took the Freebies.";
- }else{
- #new_player = 1;
- getitem 512,1;
- getitem 512,1;
- getitem 512,1;
- getitem 512,1;
- }
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment