Sorry for necrobumping this post @sader1992. Just a quick question. I have 2 to 5 NPC that uses this awesome mod of yours. What i did was for every txt file of the NPC. I always include the function.
function cutin2 {
freeloop(true);
.@map$ = getarg(0);
.@filename$ = getarg(1);
.@position = getarg(2);
.@s = getmapunits(BL_PC,.@map$,.@SD);
for(.@i=0;.@i<.@s;.@i++){
cutin(.@filename$,.@position,convertpcinfo(.@SD[.@i],CPC_CHAR));
}
return;
}
function cutin3 {
freeloop(true);
.@filename$ = getarg(0);
.@position = getarg(1);
.@s = getunits(BL_PC,.@SD);
for(.@i=0;.@i<.@s;.@i++){
if((.@cid = convertpcinfo(.@SD[.@i],CPC_CHAR)))
cutin(.@filename$,.@position,.@cid);
}
return;
}
Can i just add this to Global_Functions instead? Sorry im not at home so i cannot test.