Callfunc npc script in src code?

Hyroshima

New member
Messages
51
Points
0
Age
16
Emulator
hlw, would anyone tell me how to execute a

callfunc "func", param1,param2;


in src (função de npc script existente!)   ?

one skill will call callfunc "func", 1, skill_id;

I need to pass param1 = 1, param2 = skil_level

 
hlw, would anyone tell me how to execute a

callfunc "func", param1,param2;


in src (função de npc script existente!)   ?

one skill will call callfunc "func", 1, skill_id;

I need to pass param1 = 1, param2 = skil_level
callfunc "func", "param1","param2";


like this

also have a sample

callfunc("OddFunc",.@number)


the source link is

https://herc.ws/wiki/Callfunc

 
Hyroshima wants to use a callfunc() every time a skill is used.

E.g. player uses skill 'Magnum Break', every time it occurs callfunc("F_Test") happens.
I added a custom skill and that skill will call the function I created ... but I had to pass some parameters, because each custom skill would perform a different action within the function!

The solution I had was to create separate files just to call the function with the params for each custom skill.

solved~

ty all!

 
Last edited by a moderator:
Back
Top