PapaZola Posted April 6, 2017 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Share Posted April 6, 2017 hello may i request a script freebies like this this npc will give 1k poring coin and 1k skull then player can choose 1 item each category 1 upper headgear like 5022 or 5013 1 lower headgear 2219 or 5377 1 middle headgear 2022 or 2286 each player only can claim 1 times Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 7, 2017 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: Saturday at 02:41 PM Share Posted April 7, 2017 (edited) prontera,46,134,4 script Freebies NPC 655,{ query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$); mes "[Freebies NPC]"; mes "Welcome to Server Name!!"; if ( getd("$" + .@lip$ + "_NA") > 0 || #NewbieGift > 0) { mes "[Freebies NPC]"; mes "Your IP have already recieved a freebies."; close; } mes "Here's your freebies.:"; getitem 7539,1000; getitem 7420,1000; next; mes "[Freebies NPC]"; mes "Please Select your Upper Headgear."; switch(select("Hat of Sun God:Lord Kaho's Horn")) { case 1: getitem 5022,1; goto Freebies2; end; case 2: getitem 5013,1; goto Freebies2; end; } Freebies2: mes "[Freebies NPC]"; mes "Please Select your Middle Headgear."; switch(select("Elven Ears:Sunglasses[1]")) { case 1: getitem 2286,1; goto Freebies3; end; case 2: getitem 2201,1; goto Freebies3; end; } Freebies3: mes "[Freebies NPC]"; mes "Please Select your Lower Headgear Headgear."; switch(select("Flu Mask:Gentlemen's Pipe")) { case 1: getitem 2219,1; set #NewbieGift, 1; setd "$" + .@lip$ + "_NA", getd("$" + .@lip$ + "_NA") + 1; end; case 2: getitem 5377,1; set #NewbieGift, 1; setd "$" + .@lip$ + "_NA", getd("$" + .@lip$ + "_NA") + 1; end; } } Try this :)) Edited April 7, 2017 by crazyarashi missing curly Quote Link to comment Share on other sites More sharing options...
0 PapaZola Posted April 7, 2017 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted April 7, 2017 its work its possible if make it without check ip just make 1 times per 1 account Quote Link to comment Share on other sites More sharing options...
0 crazyarashi Posted April 7, 2017 Group: Developer Topic Count: 50 Topics Per Day: 0.02 Content Count: 776 Reputation: 239 Joined: 02/11/17 Last Seen: Saturday at 02:41 PM Share Posted April 7, 2017 1 hour ago, PapaZola said: its work its possible if make it without check ip just make 1 times per 1 account ra_temsky,46,134,4 script Freebies NPC 655,{ mes "[Freebies NPC]"; mes "Welcome to Server Name!!"; if ( #NewbieGift > 0 ) { mes "[Freebies NPC]"; mes "You already recieved a freebies."; close; } mes "Here's your freebies.:"; getitem 7539,1000; getitem 7420,1000; set #NewbieGift, 1; next; mes "[Freebies NPC]"; mes "Please Select your Upper Headgear."; switch(select("Hat of Sun God:Lord Kaho's Horn")) { case 1: getitem 5022,1; goto Freebies2; end; case 2: getitem 5013,1; goto Freebies2; end; } Freebies2: mes "[Freebies NPC]"; mes "Please Select your Middle Headgear."; switch(select("Elven Ears:Sunglasses[1]")) { case 1: getitem 2286,1; goto Freebies3; end; case 2: getitem 2201,1; goto Freebies3; end; } Freebies3: mes "[Freebies NPC]"; mes "Please Select your Lower Headgear Headgear."; switch(select("Flu Mask:Gentlemen's Pipe")) { case 1: getitem 2219,1; end; case 2: getitem 5377,1; end; } } Account Based Only :)) 2 Quote Link to comment Share on other sites More sharing options...
Question
PapaZola
hello may i request a script freebies like this
this npc will give 1k poring coin and 1k skull then
player can choose 1 item each category
1 upper headgear like 5022 or 5013
1 lower headgear 2219 or 5377
1 middle headgear 2022 or 2286
each player only can claim 1 times
Link to comment
Share on other sites
3 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.