Jump to content
  • 0
Sign in to follow this  
minx123

npc newbie can choose 2 option

Question

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;	">},

 

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
-	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;} 

Share this post


Link to post
Share on other sites
  • 0

 

-	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?

Share this post


Link to post
Share on other sites
  • 0

it will be IP based

 

if ( #Freebies )

thank you so much.. can i request 1 more add on.

how to announce welcome to newbie?

Share this post


Link to post
Share on other sites
  • 0
- 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;
}

Share this post


Link to post
Share on other sites
  • 0

- 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 again

how to fix?

bump

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.