Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src\map\script.c
- found:
- // declarations that were supposed to be exported from npc_chat.c
- #ifdef PCRE_SUPPORT
- BUILDIN_FUNC(defpattern);
- BUILDIN_FUNC(activatepset);
- add before:
- /// Starts a infinity status effect on the target unit or on the attached player.
- ///
- /// sc_start0 <effect_id>,<val1>,<val2>,<val3>,<val4>{,<unit_id>};
- BUILDIN_FUNC(sc_start0)
- {
- struct block_list* bl;
- enum sc_type type;
- int val1 = 0, val2 = 0; val3 = 0, val4 = 0;
- type = (sc_type)script_getnum(st,2);
- val1 = script_getnum(st,3);
- val2 = script_getnum(st,4);
- val3 = script_getnum(st,5);
- val4 = script_getnum(st,6);
- if( script_hasdata(st,7) )
- bl = map_id2bl( script_getnum(st,7) );
- else
- bl = map_id2bl(st->rid);
- if( bl )
- status_change_start(bl, type, 10000, val1, val2, val3, val4, -1, 18);
- return 0;
- }
- found:
- BUILDIN_DEF(changequest, "ii"),
- BUILDIN_DEF(showevent, "ii"),
- add after:
- BUILDIN_DEF(sc_start0, "iiiiii?"),
- src\map\status.c
- found:
- if( !(flag&(1|4)) )
- {
- tick = status_get_sc_def(bl, type, rate, tick, flag);
- if( !tick ) return 0;
- }
- add after:
- if( flag&16 )
- {
- tick == -1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement