Jump to content
  • 0

@market command


mitsumei

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/09/12
  • Last Seen:  

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.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1533
  • Reputation:   235
  • Joined:  08/03/12
  • Last Seen:  

hmmm.. interesting /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

hmmm.. interesting /no1

:). I'm looking forward to my request :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  54
  • Reputation:   1
  • Joined:  08/28/14
  • Last Seen:  

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?

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

i will convert to rAthena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

i will convert to rAthena

 

I think this one should be better.. /no1

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

 

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

Market_clone_1.1_rAthena.patch

Edited by Napster
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

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

status damage check nullpo_retv

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  

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;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  196
  • Reputation:   72
  • Joined:  12/12/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

 

Nice  /no1  /lv Thank you very much!

Link to comment
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.   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.

×
×
  • Create New...