minx123 2 Posted November 1, 2015 hello.. i need some help to make newbie npc can give reward to newbie base on ip. newbie can choose vk box / diabolus box. or auto reward when login and can choose. { Id: 30233 AegisName: "Valkyries_Box" Name: "Valkyries Box" Type: 18 Buy: 20 Weight: 10 Trade: { nodrop: true noselltonpc: true nogstorage: true } Script: <" getitem 2357,1; getitem 2524,1; getitem 2421,1; getitem 2115,1; getitem 4305,4; getitem 4302,1; getitem 4142,2; getitem 4047,1; getitem 4128,1; getitem 4174,1; getitem 4131,1; getitem 969,1000; ">},{ Id: 30234 AegisName: "Diabolus_Box" Name: "Diabolus Box" Type: 18 Buy: 20 Weight: 10 Trade: { nodrop: true noselltonpc: true nogstorage: true } Script: <" getitem 2375,1; getitem 2433,1; getitem 2537,1; getitem 2374,1; getitem 2729,2; getitem 4305,4; getitem 4302,1; getitem 4142,2; getitem 4047,1; getitem 4128,1; getitem 4174,1; getitem 4131,1; getitem 969,1000; ">}, Quote Share this post Link to post Share on other sites
0 iCORE 33 Posted November 2, 2015 - script Freebies -1,{ close;OnPCLoginEvent: set .@npcname$,"[Freebies Giver]"; if ( #Freebies ) { mes .@npcname$; mes "Hello to you " + strcharinfo(0); mes "Edit your message here."; if(select("Yes","No") == 1) { next; mes .@npcname$; mes "Perfect, choose a box."; switch(select("Valkyries Box","Diabolus Box")) { case 1: getitem 30233, 1; // Valkyrie Box break; case 2: getitem 30234, 1; // Diabolus Box break; } set Freebies, 1; } } close; end;} Quote Share this post Link to post Share on other sites
0 minx123 2 Posted November 2, 2015 - script Freebies -1,{ close;OnPCLoginEvent: set .@npcname$,"[Freebies Giver]"; if ( #Freebies ) { mes .@npcname$; mes "Hello to you " + strcharinfo(0); mes "Edit your message here."; if(select("Yes","No") == 1) { next; mes .@npcname$; mes "Perfect, choose a box."; switch(select("Valkyries Box","Diabolus Box")) { case 1: getitem 30233, 1; // Valkyrie Box break; case 2: getitem 30234, 1; // Diabolus Box break; } set Freebies, 1; } } close; end;} thank you for the script. may i know this one will base on ip? player cant spam new id right? Quote Share this post Link to post Share on other sites
0 iCORE 33 Posted November 2, 2015 it will be IP based if ( #Freebies ) Quote Share this post Link to post Share on other sites
0 minx123 2 Posted November 2, 2015 it will be IP based if ( #Freebies ) thank you so much.. can i request 1 more add on. how to announce welcome to newbie? Quote Share this post Link to post Share on other sites
0 iCORE 33 Posted November 2, 2015 - script Freebies -1,{ close; OnPCLoginEvent: set .@npcname$,"[Freebies Giver]"; if ( #Freebies ) { mes .@npcname$; mes "Hello to you " + strcharinfo(0); mes "I can give you freebies."; mes "Interested?"; if(select("Yes","No") == 1) { next; mes .@npcname$; mes "Perfect, choose a box."; switch(select("Valkyries Box","Diabolus Box")) { case 1: getitem 30233, 1; // Valkyrie Box break; case 2: getitem 30234, 1; // Diabolus Box break; } announce "Edit your Announce message here.",0; set Freebies, 1; } } close; end; } 1 minx123 reacted to this Quote Share this post Link to post Share on other sites
0 minx123 2 Posted November 2, 2015 (edited) - script Freebies -1,{ close; OnPCLoginEvent: set .@npcname$,"[Freebies Giver]"; if ( #Freebies ) { mes .@npcname$; mes "Hello to you " + strcharinfo(0); mes "I can give you freebies."; mes "Interested?"; if(select("Yes","No") == 1) { next; mes .@npcname$; mes "Perfect, choose a box."; switch(select("Valkyries Box","Diabolus Box")) { case 1: getitem 30233, 1; // Valkyrie Box break; case 2: getitem 30234, 1; // Diabolus Box break; } announce "Edit your Announce message here.",0; set Freebies, 1; } } close; end; } i got some problem.. when i reload script.. the npc still gv to player and when player relog npc will gv to player againhow to fix? bump Edited November 5, 2015 by AnnieRuru Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 5, 2015 honestly ... why don't you just follow those smartphone games stuffs ... they give freebies based on account, and those are unable to trade either you use *getitembound, or *rentitem 1 evilpuncker reacted to this Quote Share this post Link to post Share on other sites
hello.. i need some help to make newbie npc can give reward to newbie base on ip.
newbie can choose vk box / diabolus box.
or auto reward when login and can choose.
Share this post
Link to post
Share on other sites