Daredevil Posted November 16, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 48 Reputation: 7 Joined: 11/15/11 Last Seen: April 6, 2012 Share Posted November 16, 2011 (edited) 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 November 16, 2011 by bluesky Quote Link to comment Share on other sites More sharing options...
0 KeyWorld Posted November 16, 2011 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 379 Reputation: 304 Joined: 11/10/11 Last Seen: December 2, 2014 Share Posted November 16, 2011 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. } 1 Quote Link to comment Share on other sites More sharing options...
0 Daredevil Posted November 16, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 48 Reputation: 7 Joined: 11/15/11 Last Seen: April 6, 2012 Author Share Posted November 16, 2011 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 Quote Link to comment Share on other sites More sharing options...
0 GodLesZ Posted November 16, 2011 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 186 Reputation: 51 Joined: 11/14/11 Last Seen: January 21, 2015 Share Posted November 16, 2011 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 2 Quote Link to comment Share on other sites More sharing options...
0 Daredevil Posted November 18, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 48 Reputation: 7 Joined: 11/15/11 Last Seen: April 6, 2012 Author Share Posted November 18, 2011 thanks it's work ^^ Quote Link to comment Share on other sites More sharing options...
0 Z3R0 Posted November 18, 2011 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted November 18, 2011 and Godlezz strikes his first src help on eathena... we knew you'd be a good addition ;0 Quote Link to comment Share on other sites More sharing options...
0 Daredevil Posted November 24, 2011 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 48 Reputation: 7 Joined: 11/15/11 Last Seen: April 6, 2012 Author Share Posted November 24, 2011 mirror the link, because there is member messages me force_convex_display.diff Quote Link to comment Share on other sites More sharing options...
Question
Daredevil
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 blueskyLink to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.