Akku
Active Member
This is the code so far i end up with.
The script should cure everyone in the raid if he uses his cure button. all other script functions should ignored if it finds a cure call and the script should cure everyone even if there are 3 calls at the same time.
atm it cures the first one who calls for cure and ignores all others while its curing the first one and i am getting an error in the console but the script keeps running.
error msg:
-->D:/Programme/Innerspace/Scripts/vgshaman.iss:283 MeCasting() wait 1
D:/Programme/Innerspace/Scripts/vgshaman.iss:685 cureCurse() call MeCasting
D:/Programme/Innerspace/Scripts/vgshaman.iss:862 VG_OnIncomingText() call cureCurse
D:/Programme/Innerspace/Scripts/vgshaman.iss:212 Check_Health() do
D:/Programme/Innerspace/Scripts/vgshaman.iss:120 main() call Check_Health
'WaitFrame' is not available in atoms
Dumping script stack
--------------------
code i end up with:
The script should cure everyone in the raid if he uses his cure button. all other script functions should ignored if it finds a cure call and the script should cure everyone even if there are 3 calls at the same time.
atm it cures the first one who calls for cure and ignores all others while its curing the first one and i am getting an error in the console but the script keeps running.
error msg:
-->D:/Programme/Innerspace/Scripts/vgshaman.iss:283 MeCasting() wait 1
D:/Programme/Innerspace/Scripts/vgshaman.iss:685 cureCurse() call MeCasting
D:/Programme/Innerspace/Scripts/vgshaman.iss:862 VG_OnIncomingText() call cureCurse
D:/Programme/Innerspace/Scripts/vgshaman.iss:212 Check_Health() do
D:/Programme/Innerspace/Scripts/vgshaman.iss:120 main() call Check_Health
'WaitFrame' is not available in atoms
Dumping script stack
--------------------
code i end up with:
Code:
;================================================
function cureCurse()
{
Pawn[${aName}]:Target
if (${Me.Ability[${cureCurse}].IsReady})
{
Me.Ability[${cureCurse}]:Use
VGExecute /raid Cure ${aName}
call MeCasting
return
}
}
;================================================
atom(script) VG_OnIncomingText(string Text, string ChannelNumber, string ChannelName)
{
if ${Text.Find["CURE <red=>==="]}
{
aName:Set[${Text.Token[2,">"].Token[1,"<"]}]
call cureCurse
}
}