ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Bug in Xelagot Paintball script (Bots)
Bug in Xelagot Paintball script // BotsxelagMar 9, 2001, 8:00am
The xelagot paintball script has a bug in the event handler for the avatar
click event. To correct it, copy paste the code below to replace the *whole* event handler in the script. The bug is not really in the script but in the scripting engine, the code below will fix it through the script. I'm still tracking the bug itself :( Event Click1 # get ejector data GetSourcePerson &Hunter # get target (= victim) data GetTargetPerson &Victim # check source is in own area IfLoc &Hunter IsInSquare at LimitA at LimitB # carry on LOL Else EndEvent # Victim's session to check eject timeout GetSession %Session &Victim # if target <> bot, gosub... IfPerson &Victim IsNotBot Gosub CheckEject EndEvent The old code that produces the error is: Event Click1 # remove click detection OnAvatarClickEvent # get ejector data GetSourcePerson &Hunter # get target (= victim) data GetTargetPerson &Victim # check source is in own area IfLoc &Hunter IsInSquare at LimitA at LimitB # carry on LOL Else Goto Click1End # Victim's session to check eject timeout GetSession %Session &Victim # if target <> bot, gosub... IfPerson &Victim IsNotBot Gosub CheckEject Label Click1End # enable click detection OnAvatarClickEvent Click1 EndEvent and the error is here: # remove click detection OnAvatarClickEvent XelaG |