Jump to content
  • 0
Sign in to follow this  
Cabrera

Gifting items from jobquests.

Question

Hello guyz, just wondering if i could give a gift to the player once he reaches the second job through the original job quests. So wat shld i do? Shld i use getitem command? Plz help thx :)

 

Bewmp

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

run a search "jobchange" with "Find in files" in "herculesnpc"

after every single *jobchange,

getitem 501,1;

.... quite hassle to do like this

 

or the easy way, yet unoptimized way, is to use a custom npc, ask them come to this npc to claim the gift

prontera,154,184,5	script	kjdhfksdjfs	100,{	mes "blah blah come and get a prize";	next;	if ( Class == Job_Novice ) {		mes "no gift for the noobs";		close;	}	if ( Job_Gift[ Class ] ) {		mes "You have already claim the gift";		close;	}	switch ( Class ) {		case Job_Swordman: getitem 501, 1; break;		case Job_Mage: getitem 501, 1; break;		case Job_Archer: getitem 501, 1; break;		case Job_Acolyte: getitem 501, 1; break;	//	.... add more		default:			mes "this job ID is not yet done because the author is feeling lazy hahaha";			close;	}	Job_Gift[ Class ] = 1;	mes "have a nice day";	close;}
1 thing good using another npc is you don't have to look at another file when debugging

the bad ... of course, used up a few custom variable, and needs to reminds players to come and get it

Share this post


Link to post
Share on other sites
  • 0

 

run a search "jobchange" with "Find in files" in "herculesnpc"

after every single *jobchange,

getitem 501,1;

.... quite hassle to do like this

 

or the easy way, yet unoptimized way, is to use a custom npc, ask them come to this npc to claim the gift

prontera,154,184,5	script	kjdhfksdjfs	100,{	mes "blah blah come and get a prize";	next;	if ( Class == Job_Novice ) {		mes "no gift for the noobs";		close;	}	if ( Job_Gift[ Class ] ) {		mes "You have already claim the gift";		close;	}	switch ( Class ) {		case Job_Swordman: getitem 501, 1; break;		case Job_Mage: getitem 501, 1; break;		case Job_Archer: getitem 501, 1; break;		case Job_Acolyte: getitem 501, 1; break;	//	.... add more		default:			mes "this job ID is not yet done because the author is feeling lazy hahaha";			close;	}	Job_Gift[ Class ] = 1;	mes "have a nice day";	close;}
1 thing good using another npc is you don't have to look at another file when debugging

the bad ... of course, used up a few custom variable, and needs to reminds players to come and get it

Hey annie, the thing is that im trying to give individual gifts for each job. Example: A sniper gets a BG bow. A champion gets a BG knuckle like that so thats y i wanted to know if i can individually giv the gifts from each job quest npc :) 

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.