Jump to content
  • 0

Npc for newbie? (Freebies)


Eucharist96

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   2
  • Joined:  12/09/11
  • Last Seen:  

can some one help me to make a Npc for newbie?? (Freebies)

Link to comment
Share on other sites

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

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 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   0
  • Joined:  07/25/13
  • Last Seen:  

it works!! yeahhh thx guysss

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  11/26/13
  • Last Seen:  

why not working? sux

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   2
  • Joined:  09/11/13
  • Last Seen:  

Hello, how about freebies with choices??

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

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 by Ronald
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   2
  • Joined:  09/11/13
  • Last Seen:  

yeah I already did it , thanks ^_^

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...