Jump to content
  • 0

@market command


Question

Posted

a player types @market <message>. then a clone that have the same name as the player who typed @market will popup to your place with a chat room containing the message you typed in the @market. Then when another player clicks the pub of the clone. a message will pop up that she/he should pm the player because it is only a clone.

15 answers to this question

Recommended Posts

Posted

a player types @market <message>. then a clone that have the same name as the player who typed @market will popup to your place with a chat room containing the message you typed in the @market. Then when another player clicks the pub of the clone. a message will pop up that she/he should pm the player because it is only a clone.

I knew this, but i dont know the script.

you play RPS or Osro?

 

Posted

 

 

i will convert to rAthena

 

I think this one should be better.. /no1

http://hercules.ws/board/topic/7242-market-clone/#entry43920

 

Some one test for this, I'am no have test, now not free time

Credits : [AnnieRuru/Dastgir] hercules

 

 

I just noticed that some one report that :

 

Posted Yesterday, 05:33 PM

Hi~Annie,I'd like to report an  issue:

 

if you kill clone via @killmonster command(still working) ,and then log out your Character , map server will get crashed

 

edit : I m using plugin v1.1

Posted

yes i know but rAthena not crashed, show error map server

status damage check nullpo_retv

 

Thanks ...I will try it tomorrow...:)

if you kill clone via @killmonster command(still working) ,and then log out your Character , map server will get crashed

I tested in rathena will crash...too....

Posted

you check status.c

int status_damage(struct block_list *src,struct block_list *target,int64 dhp, int64 dsp, int walkdelay, int flag)
{
	struct status_data *status;
	struct status_change *sc;
	int hp = (int)cap_value(dhp,INT_MIN,INT_MAX);
	int sp = (int)cap_value(dsp,INT_MIN,INT_MAX);

	nullpo_ret(target); <---  check this

i have test but not crash, but show error in map server

Posted

you check status.c

int status_damage(struct block_list *src,struct block_list *target,int64 dhp, int64 dsp, int walkdelay, int flag)
{
	struct status_data *status;
	struct status_change *sc;
	int hp = (int)cap_value(dhp,INT_MIN,INT_MAX);
	int sp = (int)cap_value(dsp,INT_MIN,INT_MAX);

	nullpo_ret(target); <---  check this

i have test but not crash, but show error in map server

 

nullpo_ret(target); <--- check this

 

Also in my status by default....

 

 

by I think @killmonster command should not affect to the clone (@market)...

Posted

open atcommand.c find

 

static int atkillmonster_sub(struct block_list *bl, va_list ap)
{
	struct mob_data *md;
	int flag;

	nullpo_ret(md=(struct mob_data *)bl);
	flag = va_arg(ap, int);

	if (md->guardian_data)
		return 0; //Do not touch WoE mobs!

	if ( md->market_chat_id )   <--- add this
		return 0;

	if (flag)
		status_zap(bl,md->status.hp, 0);
	else
		status_kill(bl);
	return 1;
}
Posted (edited)

 

open atcommand.c find

 

static int atkillmonster_sub(struct block_list *bl, va_list ap)
{
	struct mob_data *md;
	int flag;

	nullpo_ret(md=(struct mob_data *)bl);
	flag = va_arg(ap, int);

	if (md->guardian_data)
		return 0; //Do not touch WoE mobs!

	if ( md->market_chat_id )   <--- add this
		return 0;

	if (flag)
		status_zap(bl,md->status.hp, 0);
	else
		status_kill(bl);
	return 1;
}

 

Great:), No crashed now.

Thanks.

 

 

Edit 1:

 

Can you help me to add on config in battle.conf?? like this:

 

//Zeny for used @market command

Market_zeny: 5000

 

It need -5000 zeny to use @market system...

 

 

Edit 2:

 

How to not showed the clone hp ??(because in my server it turned the mob hp on...)

 

 

 

Edit 3:

 

Annieruru' patch updated to the newest version 1.2, would you like to follow it :

http://hercules.ws/board/topic/7242-market-clone/?p=43920

Edited by Darkpurple

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...