Jump to content
  • 0

Edit BUILDIN_FUNC(monster)


Daredevil

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   7
  • Joined:  11/15/11
  • Last Seen:  

hello,

how to add boss monsters/normal monsters info in the script command

before :

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,"<event label>"};

after :

*monster "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>,<boss monster/normal monster>{,"<event label>"};

I would like if you use the script command *monster, the monsters can be convex mirror

like this

xmas_fild01,0,0,0,0 monster Marin 1242,35,5000,0,0

xmas_fild01,0,0,0,0 boss_monster Garm 1252,1,7200000,600000,1

so the garm can be convex mirror

thanks, btw nice new forum ^^

Edited by bluesky
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  379
  • Reputation:   304
  • Joined:  11/10/11
  • Last Seen:  

This modification will break all previous script using monster function...

Why not storing this info in the event label flag (since we can already store flags here) if you don't need to use the ondead event ?

src/map/mob.c

[color=#000000] if( npc_event_isspecial(data->eventname) )[/color]
{//Portable monster big/small implementation. [skotlex]
	int i = atoi(data->eventname);

	if( i )
	{
		if( i&2 )
			data->state.size = 1;
		else if( i&4 )
			data->state.size = 2;
		if( i&8 )
			data->state.ai = 1;
		if( i&16 ) // ADD THIS (change the flag if needed)
			data->state.boss = 1; // ADD THIS
} data->eventname[0] = '0'; //Clear event as it is not used. }

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   7
  • Joined:  11/15/11
  • Last Seen:  

This modification will break all previous script using monster function...

Why not storing this info in the event label flag (since we can already store flags here) if you don't need to use the ondead event ?

src/map/mob.c

[color=#000000] if( npc_event_isspecial(data->eventname) )[/color]
{//Portable monster big/small implementation. [skotlex]
	int i = atoi(data->eventname);

	if( i )
	{
		if( i&2 )
			data->state.size = 1;
		else if( i&4 )
			data->state.size = 2;
		if( i&8 )
			data->state.ai = 1;
		if( i&16 ) // ADD THIS (change the flag if needed)
			data->state.boss = 1; // ADD THIS
} data->eventname[0] = '0'; //Clear event as it is not used. }

wow, thanks, but if I set when a player kills the monster, it will get the cash

monster prontera, 0,0, "--ja--", 2900, 1, strnpcinfo(0) +"::Onmvpdead";

so how to activate the two events in a script command

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  186
  • Reputation:   51
  • Joined:  11/14/11
  • Last Seen:  

I like KeyWorld's idea but yes, its bad if you need the event for script events.

I've build a small modification which should it be.

This enables you to hold the old monster & monster_boss definitions AND add an additional flag (1/0) to show this mob while using convex mirror.

The syntax is

<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>,<boss monster/normal monster>,<delay1>,<delay2>{,"<event label>"};

The flag has to be 1 or 0.

1 means convex mirror will show it, 0 otherwise. Boss mobs will still be shown even without this flag.

This should be optionaly. Unfortunately I'm @work & cant test it :)

Sorry 4 what.

force_convex_display.diff

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

and Godlezz strikes his first src help on eathena... we knew you'd be a good addition ;0

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   7
  • Joined:  11/15/11
  • Last Seen:  

mirror the link, because there is member messages me

force_convex_display.diff

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