rans Posted December 26, 2012 Group: Members Topic Count: 104 Topics Per Day: 0.02 Content Count: 429 Reputation: 60 Joined: 08/19/12 Last Seen: April 14 Share Posted December 26, 2012 Can I request A freebie npc that can generate a code... that code when you enter to the Freebies NPC . it will give you the Freebies.. thnx-- sorry for my bad english sir.. Quote Link to comment Share on other sites More sharing options...
Katazui Posted December 26, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 167 Reputation: 23 Joined: 11/23/11 Last Seen: May 25, 2023 Share Posted December 26, 2012 - script Freebie -1,{ OnPCLoginEvent: if (#Freebie == 0) { mes "Welcome to ServerRO!"; //Server Name mes "Since you're new to this server you get some freebies!"; set #Freebie, #Freebie 1; getitem 517,100; //Change Items getitem 501,500; //Change Items close; end; } end; } Quote Link to comment Share on other sites More sharing options...
vijay30393 Posted December 26, 2012 Group: Members Topic Count: 35 Topics Per Day: 0.01 Content Count: 114 Reputation: 0 Joined: 05/10/12 Last Seen: April 18, 2020 Share Posted December 26, 2012 This one would help you prontera,147,165,4 script Freebies 910,{ set .npc$,"[Newbie's Helper]"; if(#newbie==0){ goto Get; } else { goto Got; } Get: mes .npc$; mes "Hello there, Welcome to RO!"; next; mes .npc$; mes "Do you want some free items for newbie?"; next; menu "No, Thank's",M1,"Of course! Give me please...",M2; M1: next; mes .npc$; mes "OK, no problem. Come again if you change your mind."; close; end; M2: next; mes .npc$; mes "Here!"; mes "Have nice days!"; getitem 3293,1; set #newbie,1; close2; end; end; end; Got: mes .npc$; mes "Hello "+strcharinfo(0)+"!"; mes "Have great days!"; close; end; // auto announcement OnInit: while(1) { npctalk "Take your Freebies Items here! "; sleep 900000; } } Quote Link to comment Share on other sites More sharing options...
Capuche Posted December 26, 2012 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted December 26, 2012 (edited) set #Freebie, #Freebie 1; Wrong. set #Freebie, 1; ... Right. close; end; End after close is useless. - script Freebie -1,{ OnPCLoginEvent: if( !#Freebie ) { mes "Welcome to ServerRO!"; //Server Name mes "Since you're new to this server you get some freebies!"; set #Freebie, 1; getitem 517,100; //Change Items getitem 501,500; //Change Items close; } end; } ... is a little better. close2; end; end; end; What's that ? Prevention ? XD ! Sorry... >> Please use codebox ! Edited December 26, 2012 by Capuche Quote Link to comment Share on other sites More sharing options...
Katazui Posted December 26, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 167 Reputation: 23 Joined: 11/23/11 Last Seen: May 25, 2023 Share Posted December 26, 2012 Sorry. Lol. I haven't code in years. Quote Link to comment Share on other sites More sharing options...
Question
rans
Can I request A freebie npc that can generate a code...
that code when you enter to the Freebies NPC . it will give you the Freebies..
thnx-- sorry for my bad english sir..
Link to comment
Share on other sites
4 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.