Jump to content
  • 0
Sign in to follow this  
skyundersea

[Request] Custom Item Script

Question

Hi guys,

i'm here to make a request if its possible

I need a visual item at shoes slot that make character float a little and increase speed by some %,

also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose!

thank you !

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

I dont think you can make them float as easily as you want, without using union or something. . . cause the head is separate from the body right

 

your gonna have to wait for annie ;)

Edited by lllaaazzz

Share this post


Link to post
Share on other sites
  • 0

increase movement speed bonus bSpeedAddRate,`n`;
but to make the character floating, nope, only star gladiator can fly

prontera,157,180,4	script	Option Master	4_DOG01,{
	setoption Option_Flying, true;
	sleep2 1000;
	setoption Option_Flying, false;
}

this will make the character flying while changing the cloth to star gladiator
http://herc.ws/board/topic/15912-only-star-gladiator-can-fly/#comment-87647
its restricted by client side, which I hope someone who are good at client can take a crack at it

 

18 hours ago, skyundersea said:

also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose!

no idea what's this means

Share this post


Link to post
Share on other sites
  • 0
20 hours ago, skyundersea said:

also need to know if is possible to add Visual option to manner PK system, when ppl kill someone it show Option i choose!

 

1 hour ago, AnnieRuru said:

 


prontera,157,180,4	script	Option Master	4_DOG01,{
	setoption Option_Flying, true;
	sleep2 1000;
	setoption Option_Flying, false;
}

no idea what's this means

This should means on PvP enabled map?

When player A kill player B,

Show effect xxx on player A.

But what is "manner"?

Side note :

Why can't I delete code box (and content of code box) on Android chrome? 

And it's same with quote box!

Share this post


Link to post
Share on other sites
  • 0
11 hours ago, AnnieRuru said:

no idea what's this means

manner system is PK system at conf/misc.confScreenshot_4.jpg.0c4446c8dee1466907f22d3395e4233f.jpg

is there any script to activate a "option effect" when people PK?

 

10 hours ago, utofaery said:

prontera,157,180,4 script Option Master 4_DOG01,{ setoption Option_Flying, true; sleep2 1000; setoption Option_Flying, false; }

i can use this with OnPCKill to activate option?

Share this post


Link to post
Share on other sites
  • 0

need source modification plugin to do this

#include "common/hercules.h"
#include "map/pc.h"
#include "map/battle.h"
#include "plugins/HPMHooking.h"
#include "common/HPMDataCheck.h"

HPExport struct hplugin_info pinfo = {
	"pk_showeffect",
	SERVER_TYPE_MAP,
	"x_O",
	HPM_VERSION,
};

int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) {
	struct block_list *s_bl = src, *t_bl = target;
	if ( (t_bl = battle->get_master(target)) == NULL )
		t_bl = target;
	if ( (s_bl = battle->get_master(src)) == NULL )
		s_bl = src;

	if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 )
		clif->specialeffect( s_bl, 548, AREA ); // EF_RED_HIT

	return retVal;
}

HPExport void plugin_init (void) {
	addHookPost( battle, check_target, battle_check_target_post );
}

player will blink with red effect when hitting another player

yes, possible, setoption, specialeffect, sc_start ... you name it
you just need some source modification knowledge to do it

Edited by AnnieRuru

Share this post


Link to post
Share on other sites
  • 0
17 hours ago, AnnieRuru said:

need source modification plugin to do this


#include "common/hercules.h"
#include "map/pc.h"
#include "map/battle.h"
#include "plugins/HPMHooking.h"
#include "common/HPMDataCheck.h"

HPExport struct hplugin_info pinfo = {
	"pk_showoption",
	SERVER_TYPE_MAP,
	"x_O",
	HPM_VERSION,
};

int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) {
	struct block_list *s_bl = src, *t_bl = target;
	if ( (t_bl = battle->get_master(target)) == NULL )
		t_bl = target;
	if ( (s_bl = battle->get_master(src)) == NULL )
		s_bl = src;

	if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 )
		clif->specialeffect( s_bl, 548, AREA ); // EF_RED_HIT

	return retVal;
}

HPExport void plugin_init (void) {
	addHookPost( battle, check_target, battle_check_target_post );
}

player will blink with red effect when hitting another player

yes, possible, setoption, specialeffect, sc_start ... you name it
you just need some source modification knowledge to do it

Thank you again :)

Share this post


Link to post
Share on other sites
  • 0

not very satisfy with my previous attempt, so redo again with *hateffect

#include "common/hercules.h"
#include "map/pc.h"
#include "map/battle.h"
#include "common/timer.h"
#include "plugins/HPMHooking.h"
#include "common/HPMDataCheck.h"

HPExport struct hplugin_info pinfo = {
	"pk_showeffect",
	SERVER_TYPE_MAP,
	"0.2",
	HPM_VERSION,
};

int hateffect_timerid = INVALID_TIMER;

int hateffect_countdown( int tid, int64 tick, int id, intptr data ) {
	struct map_session_data *sd = map->id2sd(id);
	if ( sd != NULL )
		clif->hat_effect_single( &sd->bl, 27, false );
	hateffect_timerid = INVALID_TIMER;
	return 0;
}

int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int flag ) {
	struct block_list *s_bl = src, *t_bl = target;
	if ( (t_bl = battle->get_master(target)) == NULL )
		t_bl = target;
	if ( (s_bl = battle->get_master(src)) == NULL )
		s_bl = src;

	if ( s_bl->type == BL_PC && t_bl->type == BL_PC && (flag & BCT_ENEMY) == BCT_ENEMY && retVal == 1 ) {
		if ( hateffect_timerid != INVALID_TIMER ) {
			timer->delete( hateffect_timerid, hateffect_countdown );
			hateffect_timerid = INVALID_TIMER;
		}
		hateffect_timerid = timer->add( timer->gettick() + battle->bc->prevent_logout, hateffect_countdown, ((struct map_session_data*)s_bl)->bl.id, 0 );
		clif->hat_effect_single( s_bl, 27, true );
	}

	return retVal;
}

HPExport void plugin_init (void) {
	addHookPost( battle, check_target, battle_check_target_post );
}

 

Edited by AnnieRuru

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.