Eucharist96 Posted December 9, 2011 Posted December 9, 2011 can some one help me to make a Npc for newbie?? (Freebies) Quote
Emistry Posted October 1, 2012 Posted October 1, 2012 Hey guys, what if: 1: I'd like to make it so they can select one item from a list of about 6 items which one they wanted ( account based ) 2: It would be 1 random item from a list of 6 items ( also account based ) Thanks Solved ... http://rathena.org/board/topic/71749-welcome-packageitem/ just in case someone didnt notice it. xD Quote
Yoona Posted July 13, 2013 Posted July 13, 2013 Please take note that IP address can be easily changed. Anyway, this is the script: amatsu,116,146,3 script Seyra 90,{ set .@n$, "[Seyra]"; setarray .@rwd[0],2115,1,2357,1,2421,1,2524,1; // Rewards: <item id>,<item amount> query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$); if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0) { mes .@n$; mes "I'm sorry, the rewards are exclusively for new players."; close; } mes .@n$; mes "Welcome! Here are some free gifts"; mes "for newcomers:"; for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 ) mes .@rwd[.@i+1] + " x " + getitemname(.@rwd[.@i]); close2; set #NewbieGift, 1; setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1; for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 ) getitem .@rwd[.@i], .@rwd[.@i+1]; end; OnInit: waitingroom "Newbie Gift!",0; end; } soo, if IP can easily changed is there any other way to prevent that? by using this script? please Quote
Ronald Posted August 25, 2014 Posted August 25, 2014 (edited) Hello, how about freebies with choices?? prontera,142,170,5 script Freebies 936,{ mes "[Hello]"; mes "[I can give you a free gift based on your future job.]"; mes "[Please choose the correct item for the future job]"; if(!#Freebie) { mes "Select one:"; next; switch(select("Swordsman:Magician - Ninja:Archer - Gunslinger:Acolyte:Merchant - Taekwon :Thief")) { case 1: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Swordsman break; case 2: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Magician - Ninja break; case 3: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Archer - Gunslinger break; case 4: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Acolyte break; case 5: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Merchant - Taekwon break; case 6: getitem 12537,1; getitem 7256,1500; getitem 7726,1500; //Item for Thief break; } set #Freebie, 1; close; } OnInit: delwaitingroom; waitingroom "Get your freebies here ! ",0; end; } Just edit the Items. Edited August 25, 2014 by Ronald Quote
Question
Eucharist96
can some one help me to make a Npc for newbie?? (Freebies)
33 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.