Jump to content
  • 0
almarket23

Gladiator Skill

Question

Hi guys thanks for reading this topic.

 

Is it possible to reset the Feelings and Hatred skill of a Star Gladiator? If yes can anyone make me a script for this one please

Share this post


Link to post
Share on other sites

9 answers to this question

Recommended Posts

  • 0

how about resetting the hatred?

Open src/map/atcommand.c

 

Find this :

/*==========================================
 * Feel (SG save map) Reset [HiddenDragon]
 *------------------------------------------*/
ACMD(feelreset)
{
	pc->resetfeel(sd);
	clif->message(fd, msg_txt(1324)); // Reset 'Feeling' maps.

	return true;
}

Add this after the code for FEELRESET

 

/*==========================================
* Hatred Reset [Plug and Play]
*------------------------------------------*/
ACMD(hatredreset)
{
	pc->resethate(sd);
	clif->message(fd, "Reset 'hate' mobs, kicking...");
	clif->GM_kick(NULL, sd);
	return true;
}

 

Then recompile your server

 

in the NPC Custom Script

you can use this

 

 

-	script	Hatred_Reset	FAKE_NPC,{
OnInit:
	bindatcmd "hatredreset",strnpcinfo(3)+"::OnHatredReset";
	end;

OnHatredReset:
	if(Class == Job_Star_Gladiator){
		message strcharinfo(0),"You will be kick after 3 seconds to reset your Hatred Skill";
		sleep2 3000;
		atcommand "@hatredreset";
	}
	else{
		message strcharinfo(0),"Sorry, Only Star Gladiator Job can use @hatredreset";
	}
end;
}

Share this post


Link to post
Share on other sites
  • 0

 

how about resetting the hatred?

Open src/map/atcommand.c

 

Find this :

/*==========================================
 * Feel (SG save map) Reset [HiddenDragon]
 *------------------------------------------*/
ACMD(feelreset)
{
	pc->resetfeel(sd);
	clif->message(fd, msg_txt(1324)); // Reset 'Feeling' maps.

	return true;
}

Add this after the code for FEELRESET

 

/*==========================================
* Hatred Reset [Plug and Play]
*------------------------------------------*/
ACMD(hatredreset)
{
	pc->resethate(sd);
	clif->message(fd, "Reset 'hate' mobs, kicking...");
	clif->GM_kick(NULL, sd);
	return true;
}

 

Then recompile your server

 

in the NPC Custom Script

you can use this

 

 

-	script	Hatred_Reset	FAKE_NPC,{
OnInit:
	bindatcmd "hatredreset",strnpcinfo(3)+"::OnHatredReset";
	end;

OnHatredReset:
	if(Class == Job_Star_Gladiator){
		message strcharinfo(0),"You will be kick after 3 seconds to reset your Hatred Skill";
		sleep2 3000;
		atcommand "@hatredreset";
	}
	else{
		message strcharinfo(0),"Sorry, Only Star Gladiator Job can use @hatredreset";
	}
end;
}

It shouldn't need relog

 

Also you forgot to do ACMD_DEF(hatredreset)

Share this post


Link to post
Share on other sites
  • 0

 

 

how about resetting the hatred?

Open src/map/atcommand.c

 

Find this :

/*==========================================
 * Feel (SG save map) Reset [HiddenDragon]
 *------------------------------------------*/
ACMD(feelreset)
{
	pc->resetfeel(sd);
	clif->message(fd, msg_txt(1324)); // Reset 'Feeling' maps.

	return true;
}

Add this after the code for FEELRESET

 

/*==========================================
* Hatred Reset [Plug and Play]
*------------------------------------------*/
ACMD(hatredreset)
{
	pc->resethate(sd);
	clif->message(fd, "Reset 'hate' mobs, kicking...");
	clif->GM_kick(NULL, sd);
	return true;
}

 

Then recompile your server

 

in the NPC Custom Script

you can use this

 

 

-	script	Hatred_Reset	FAKE_NPC,{
OnInit:
	bindatcmd "hatredreset",strnpcinfo(3)+"::OnHatredReset";
	end;

OnHatredReset:
	if(Class == Job_Star_Gladiator){
		message strcharinfo(0),"You will be kick after 3 seconds to reset your Hatred Skill";
		sleep2 3000;
		atcommand "@hatredreset";
	}
	else{
		message strcharinfo(0),"Sorry, Only Star Gladiator Job can use @hatredreset";
	}
end;
}

It shouldn't need relog

 

Also you forgot to do ACMD_DEF(hatredreset)

where to put this line? ACMD_DEF(hatredreset)

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.