Jump to content
  • 0

can somebody fix this script for me please?


eboni001

Question


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

hello, can somebody know why when i talk to this npc only say: You already claim your free items? i tried with lot of diferents chars but allways the same.

 

prontera,146,159,6	script	Novice Support	893,{

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

    if( #novice = 1){
    mes .name$;
	emotion	e_swt2;
    mes "You already claim your free items.";
    close;
		}
		else
		{
	mes .name$;
	if (Class	<	1)	{
		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;
		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	5172,1;	//Beret
		getitem	645,25;	//Concentration potion
		getitem	14533,10;	//Field Manual
		getitem	14232,10;	//ygg berry box(10)
		getitem	4142,1;	//Doppelganger Card
		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;
}
}
}

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   54
  • Joined:  12/23/12
  • Last Seen:  

Rewrote it all for you.

Would it not be better to auto give freebies to new people rather than clicking an NPC

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

    if( #PlayerRecievedFreebies )
	{
		mes "[Emely]";
		emotion	e_swt2;
		mes "You already claimed your free items.";
		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	5172,1;	//Beret
		getitem	645,25;	//Concentration potion
		getitem	14533,10;	//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:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

prontera,146,159,6	script	Novice Support	893,{

// Name of the NPC

set .name$, "[Emely]";

if(#novice == 1) {

mes .name$;

emotion e_swt2;

mes "You already claim your free items.";

close;

} else {

mes .name$;

if(Class < 1) {

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;

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 5172,1; //Beret

getitem 645,25; //Concentration potion

getitem 14533,10; //Field Manual

getitem 14232,10; //ygg berry box(10)

getitem 4142,1; //Doppelganger Card

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;

}

}

}

Tell me if you're having the same problem. Edited by Skorm
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

This code :

if( #novice = 1) 

 

must be : 

if( #novice == 1)
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:  

Really Thank you guys this is working Awesome ^_^  all of you are the best.

Edited by eboni001
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...