Jump to content
  • 1

Novice Support NPC


rakuzas

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

I edit it to make it works.. Feel free to use it.. Please leave me credit.. Thanks..

 

 

 

//===== rAthena Script ======================================= 
//= Novice Support NPC
//===== By: ================================================== 
//= rakuzas ([email protected])
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= This script works but need some modification.
//= Novice Support NPC
//=
//= This NPC will give basic item for Novice and only can take once
//= While you still novice to avoid abuse.
//===== Additional Comments: ================================= 
//= 1.0 First version. rakuzas
//=
//============================================================
ra_temple,106,159,5 script Novice Support 864,{ 

// Name of the NPC 
set .name$, "[GM Lisa]"; 

if( novice = 1){ 
mes .name$; 
emotion e_swt2; 
mes "I already give the item for you."; 
close; 

} else { 

mes .name$; 
if (Class < 1) { 
emotion e_ho; 
mes "Hello young adventurer."; 
mes "I can give you free rental item and some items"; 
mes "Do you want it?"; 
next; switch(select( "You're so kind. Thank you!:Nah~ Im too pro for this!" )){ 

Case 1: 
mes .name$; 
emotion e_kis; 
mes "Please take this item and have a nice day~"; 
next; 
getitem 13764,1; //Beginner's Field Manual 5 Box 
getitem 14231,1; //Novice Plate box 
getitem 12324,100; //novice butterfly wing 
getitem 12323,300; //Novice fly wing 
getitem 569,500; //Novice potion 

set novice, 1;

mes "See you soon~"; 
break; 

Case 2:
mes .name$; 
emotion e_ag; 
mes "Such a arrogant person."; 
mes "^ff0000@kill "+ strcharinfo(0) +"^000000"; 
next; 
mes .name$; 
emotion e_omg; 
mes "Why my command not work?!"; 
mes "Maybe you're lucky!"; 
break; 

} close; 

} else { 
if (Class < 24) { 
mes "Congratulations!";
mes "I see you already reborn."; 
close; 
} 
end; } } }

 

 

Edited by rakuzas
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Read: Basic_Scripting#Conditions.2C_Variables.2C_and_Set

You're using an account-based variable instead of a character-based one.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

/no1 Thanks a lot~ 

 

Hmm.. is it possible to shows at chat channel each item we got? Thanks..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

dispbottom "You got 1 " +getitemname(13764);

and so on..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

OK~ Thanks a lot.. /no1

Link to comment
Share on other sites


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

#novice   --->    novice

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

#novice   --->    novice

 

Thanks its works now~ /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

I make new custom NPC.. But my problem is.. Each time we have take the item from this NPC, all other char from same account cannot take it anymore.. Im new in scripting so im asking help from here.. 

 

Here is my script.. 

 

ra_temple,106,159,5	script	Novice Support	864,{

// Name of the NPC
		set .name$, "[GM Lisa]";

    if( #novice = 1){
    mes .name$;
	emotion	e_swt2;
    mes "I already give the item for you.";
    close;
		}
		else
		{
	mes .name$;
	if (Class	<	1)	{
		emotion	e_ho;
		mes "Hello young adventurer.";
		mes "I can give you free rental item and some items";
		mes "Do you want it?";
		next;
		switch(select(	"You're so kind. Thank you!:Nah~ Im too pro for this!"	)){
		Case 1:
		mes .name$;
		emotion	e_kis;
		mes "Please take this item and have a nice day~";
		next;
		getitem	13764,1;	//Beginner's Field Manual 5 Box
		getitem	14231,1;	//Novice Plate box
		getitem	12324,100;	//novice butterfly wing
		getitem	12323,300;	//Novice fly wing
		getitem	569,500;	//Novice potion
		set #novice, 1;
		mes "See you soon~";
		break;
		Case 2:
		mes .name$;
		emotion	e_ag;
		mes "Such a arrogant person.";
		mes "^ff0000@kill "+ strcharinfo(0) +"^000000";
		next;
		mes .name$;
		emotion	e_omg;
		mes "Why my command not work?!";
		mes "Maybe you're lucky!";
			break;
			}
	close;
}
		else
		{
if (Class	<	24)	{
		mes "Congratulations!";
		mes "I see you already reborn.";
		close;
		}
end;
}
}
}

May i use this npc? :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hahaha.. Its not complete.. But at least please leave credit since i make it.. /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Hahaha.. Its not complete.. But at least please leave credit since i make it.. /no1

ok hehe but you have to add your credits to the scripts if you want people leave them ^_^, since you say its not complete  -SkittleNugget- Edited for me and its working very good i just modify the freebies

and npc name, but i want it as is only 1 char per account, i will leave the edited one here if you want to use it, its working awesome.

 

====> Edited version by -SkittleNugget- <=====

//============================================
//= Npc that gives freebies to the new
//============================================
//= Rewritten by SkittleNugget (rAthena.org)
//============================================
prontera,146,161,6	script	Novice Support	893,{

    if( #PlayerRecievedFreebies )
	{
		mes "[Emely]";
		emotion	e_swt2;
		mes "You already claimed your free items or you are not a novice anymore, Remember that i'll give you some free stuffs only once per account!";
		close;
	}
		else if ( Class < 1 )
	{
		mes "[Emely]";
		emotion	e_ho;
		mes "Hello young adventurer and welcome to Kyojin RO";
		mes "I can give you some free items to help you grown fast";
		mes "Do you want it?";
		next;
		if ( select("You're so kind. Thank you!:Nah~ Im too pro for this!")==2)
		{
			mes "[Emely]";
			emotion	e_ag;
			mes "Such a arrogant person.";
			mes "^ff0000@kill "+ strcharinfo(0) +"^000000";
			next;
			mes "[Emely]";
			emotion	e_omg;
			mes "Why my command not work?!";
			mes "Maybe you're lucky!";
			close;
		}
		mes "[Emely]";
		emotion	e_kis;
		mes "Please take this item and have a nice day~";
		next;
		getitem	504,30;	//White Potion
		getitem	645,25;	//Concentration potion
		getitem	14533,4;	//Field Manual
		getitem	14232,10;	//ygg berry box(10)
		getitem	4142,1;	//Doppelganger Card
		set #PlayerRecievedFreebies, 1;
		mes "See you soon~";
		close;
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Hahaha.. Its not complete.. But at least please leave credit since i make it..  /no1

ok hehe but you have to add your credits to the scripts if you want people leave them  ^_^, since you say its not complete  -SkittleNugget- Edited for me and its working very good i just modify the freebies

and npc name, but i want it as is only 1 char per account, i will leave the edited one here if you want to use it, its working awesome.

 

Hmm.. I dont see much diifferent from the one edited and my original scripts.. I already edit the scripts and have make is working.. /no1

Edited by Capuche
Remove useless long quote content
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...