NANORAY Posted August 28, 2016 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Share Posted August 28, 2016 1. npc location: iz_int 2. when the player is on the range of the npc it will auto talk 3. npc will give a freebies with qty 4. after freebies had given player will be warped to prontera and save. Quote Link to comment Share on other sites More sharing options...
1 Aureon Posted August 28, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 281 Reputation: 14 Joined: 10/14/13 Last Seen: October 9, 2017 Share Posted August 28, 2016 Try this one: iz_int,92,92,4 script Freebies#rA 100,5,5,{ callsub OnMain; end; OnTouch: OnMain: set @npc$,"[rAthena]"; if (#freebies == 1) callsub OnDone; getitem 501,1; getitem 502,2; getitem 503,3; dispbottom "Freebies has been given!"; sleep2 1000; warp "prontera",150,150; end; OnDone: mes @npc$; mes "You already have your freebies."; close; } - script Warp#new -1,{ OnPCLoadMapEvent: if (#freebies == 1) end; getmapxy(.@map$, .@x, .@y, 0); savepoint .@map$, .@x, .@y; dispbottom ""+.@map$+" is your new savepoint!"; set #freebies,1; end; } prontera mapflag loadevent change this line to whatever freebie item you may want: getitem 501,1; getitem 502,2; getitem 503,3; 1 Quote Link to comment Share on other sites More sharing options...
0 NANORAY Posted August 28, 2016 Group: Members Topic Count: 95 Topics Per Day: 0.02 Content Count: 210 Reputation: 3 Joined: 12/20/11 Last Seen: March 1, 2019 Author Share Posted August 28, 2016 thanks master! Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 28, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 28, 2016 prontera,155,175,5 script Freebie 4_F_KAFRA9,5,5,{ OnTouch: if ( #freebies ) { mes "Already obtained freebies."; } else { getitem 501,1; getitem 502,2; getitem 503,3; mes "Obtained freebies."; #freebies = 1; savepoint "prontera",155,181; } close2; warp "SavePoint",0,0; end; } simplify it ... @Aureon these basic npcs, just simplify it into one NPC. loadevent are unnecessary. 1 Quote Link to comment Share on other sites More sharing options...
0 Aureon Posted August 31, 2016 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 281 Reputation: 14 Joined: 10/14/13 Last Seen: October 9, 2017 Share Posted August 31, 2016 @Emistry sorry, my fault Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted August 31, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 31, 2016 @Emistry sorry, my fault no worry, learn from the mistake and improve more. Quote Link to comment Share on other sites More sharing options...
0 tract Posted November 17, 2016 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 11 Reputation: 0 Joined: 10/05/16 Last Seen: February 1, 2017 Share Posted November 17, 2016 When you have to click on any cell of the map npc keep sayin you already have a freebies Quote Link to comment Share on other sites More sharing options...
0 X-FamousRO Posted May 9, 2017 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 05/08/17 Last Seen: May 9, 2017 Share Posted May 9, 2017 how can i copy this to winscp ? its not working when i copy to rathena/npc/custom/freebies.txt file Quote Link to comment Share on other sites More sharing options...
0 Cyro Posted May 9, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 1138 Reputation: 290 Joined: 04/29/13 Last Seen: July 20, 2024 Share Posted May 9, 2017 13 minutes ago, X-FamousRO said: how can i copy this to winscp ? its not working when i copy to rathena/npc/custom/freebies.txt file https://github.com/rathena/rathena/wiki/Adding-a-Script Quote Link to comment Share on other sites More sharing options...
Question
NANORAY
1. npc location: iz_int
2. when the player is on the range of the npc it will auto talk
3. npc will give a freebies with qty
4. after freebies had given player will be warped to prontera and save.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.