Jump to content

Dark Theme was set as default for all members. Please report any issues here.

bgamez23

@pk patch v1.1

Recommended Posts

Why use @pk? I thought we have

killable: "Make your character killable."

why not just make killable an alias?

 

aliases: {	killable: ["pk"]	mobinfo: ["monsterinfo", "mi"]	iteminfo: ["ii"]	time: ["date", "serverdate", "servertime"]	autotrade: ["at"]	help: ["h"]	jumpto: ["goto", "warpto"]	mount: ["mountpeco"]	who: ["whois"]	npctalk: ["npctalkc"]	gvgon: ["gpvpon"]	gvgoff: ["gpvpoff"]	jobchange: ["job"]	load: ["return"]	warp: ["rura", "mapmove"]	dye: ["ccolor"]	hairstyle: ["hstyle"]	haircolor: ["hcolor"]	monster: ["spawn"]	blvl: ["lvup", "blevel", "baselvl", "baselvup", "baselevel", "baselvlup"]	jlvl: ["jlevel", "joblvl", "joblvup", "joblevel", "joblvlup"]	glvl: ["glevel", "guildlvl", "guildlvup", "guildlevel", "guildlvlup"]	resetstat: ["streset"]	resetskill: ["skreset"]	allskill: ["allskills", "skillall", "skillsall"]	allstats: ["allstat", "statall", "statsall"]	ban: ["banish"]	unban: ["unbanish"]	unjail: ["discharge"]	homlevel: ["hlvl", "hlevel", "homlvl", "homlvup"]	homevolution: ["homevolve"]	mutearea: ["stfu"]	monsterignore: ["battleignore"]	raise: ["revive"]	kill: ["die"]	guildstorage: ["gstorage"]	accinfo: ["accountinfo"]	itemreset: ["clearinventory"]	channel: ["main"]}

Share this post


Link to post
Share on other sites

Bump.. getting error while compiling

Error	3	error C2039: 'flag' : is not a member of 'map_interface'        \src\map\atcommand.c	4424	1	map-server
Error	4	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6704	1	map-server
Error	5	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6776	1	map-server

Share this post


Link to post
Share on other sites
On 2/23/2017 at 7:20 AM, Pandaaa said:

Bump.. getting error while compiling

Error	3	error C2039: 'flag' : is not a member of 'map_interface'        \src\map\atcommand.c	4424	1	map-server
Error	4	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6704	1	map-server
Error	5	error C2039: 'flag' : is not a member of 'map_interface'	\src\map\battle.c	6776	1	map-server

got this error too

Share this post


Link to post
Share on other sites

@CraftNCheez This patch was written many years ago and was already outdated.

Try this solution, tho I haven't tried it to run:

1)
On this line find:

+	if( map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.gvg_castle || map[sd->bl.m].flag.gvg_dungeon ) {

and replace it with:

+	if (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.gvg_castle || map->list[sd->bl.m].flag.gvg_dungeon) {


2)
On this line find:

+			if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

and replace it with:

+			if( map->list[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

 

3)
On this line find:

+				else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

and replace it with:

+				else if( map->list[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

 

Share this post


Link to post
Share on other sites
58 minutes ago, Legend said:

@CraftNCheez This patch was written many years ago and was already outdated.

Try this solution, tho I haven't tried it to run:

1)
On this line find:

+	if( map[sd->bl.m].flag.pvp || map[sd->bl.m].flag.gvg || map[sd->bl.m].flag.gvg_castle || map[sd->bl.m].flag.gvg_dungeon ) {

and replace it with:

+	if (map->list[sd->bl.m].flag.pvp || map->list[sd->bl.m].flag.gvg || map->list[sd->bl.m].flag.gvg_castle || map->list[sd->bl.m].flag.gvg_dungeon) {


2)
On this line find:

+			if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

and replace it with:

+			if( map->list[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )

 

3)
On this line find:

+				else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

and replace it with:

+				else if( map->list[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )

 

I recently updated the plugin: https://github.com/dastgir/HPM-Plugins/blob/master/src/plugins/%40pk.c

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
Reply to this topic...

×   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.