I need help with this script, please. It spawns the monster but doesn't respawn it. I'm not sure why. This is the only way it works; if I place "BossniaHP::OnMyMobDead" at the end of the line, the script doesn't work. The only problem is that it's not calling OnMyMobDead.
Question
Gaspar145
I need help with this script, please. It spawns the monster but doesn't respawn it. I'm not sure why. This is the only way it works; if I place "BossniaHP::OnMyMobDead" at the end of the line, the script doesn't work. The only problem is that it's not calling OnMyMobDead.
function script BossniaHP { .@monsterID = getarg(0,0); .@monsterName$ = getarg(1,""); .@amount = getarg(2,0); .@map$ = getarg(3,""); .@hp = getarg(4,0); OnInit: $@Cheffenia_ID = bg_monster("BossniaHP::OnMyMobDead", .@map$, 192, 99, .@monsterName$, .@monsterID, .@amount); setunitdata $@Cheffenia_ID,UMOB_HP,10; // Make Crystal immune to damage until Guardians are defeated end; OnMyMobDead: initnpctimer; end; OnTimer500: stopnpctimer; donpcevent "BossniaHP::OnInit"; end; }
Link to comment
Share on other sites
1 answer 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.