npc newbie can choose 2 option

minx123

New member
Messages
283
Points
0
Github
minx123
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.

Code:
{	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;	">},
 
Code:
-	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;} 
 
- 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?

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

 
Last edited by a moderator:
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

 
Back
Top