Jump to content

  •  

bachir1994

Member Since 08 Oct 2016
Offline Last Active Mar 25 2017 05:13 PM
-----

Posts I've Made

In Topic: Gladiator Skill

23 January 2017 - 04:02 PM

 

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)


In Topic: R> Dimensional Travel

19 November 2016 - 11:00 PM

Please, send PM or link for me

 

Dimensional Travel Npcs Quest

 

Paid or No? 

did you got it ? ? ??