Daredevil Posted November 16, 2011 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
0 KeyWorld Posted November 16, 2011 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
0 Daredevil Posted November 16, 2011 Author 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
0 GodLesZ Posted November 16, 2011 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
0 Z3R0 Posted November 18, 2011 Posted November 18, 2011 and Godlezz strikes his first src help on eathena... we knew you'd be a good addition ;0 Quote
0 Daredevil Posted November 24, 2011 Author Posted November 24, 2011 mirror the link, because there is member messages me force_convex_display.diff Quote
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 bluesky6 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.