Edit: Problem solved. Setting teams does not work with OnPCLoadMapEvent and must (seemingly) be triggered via npc direct activation.
I'm trying to make town maps function with mobs that can attack players under certain conditions. The map I've decided to use has been added to the map index, I've set up a new type of battlegrounds in the battlegrounds db with the variables there matching the variables that I use in the actual script. I can get the maps to spawn, confirm that players get added to the BG team (or at least a variable of the same name is set) and the monsters are spawned using the set X BG_Monster command so the teams should all be correct. They still act hostile towards players who should be on the same team.
Attached is the script. Help would be appreciated.
Question
Synel
Edit: Problem solved. Setting teams does not work with OnPCLoadMapEvent and must (seemingly) be triggered via npc direct activation.
I'm trying to make town maps function with mobs that can attack players under certain conditions. The map I've decided to use has been added to the map index, I've set up a new type of battlegrounds in the battlegrounds db with the variables there matching the variables that I use in the actual script. I can get the maps to spawn, confirm that players get added to the BG team (or at least a variable of the same name is set) and the monsters are spawned using the set X BG_Monster command so the teams should all be correct. They still act hostile towards players who should be on the same team.
Attached is the script. Help would be appreciated.
Here's BG Database addition. There's no XY respawns because I had no plans on using the respawns.
Link to comment
Share on other sites
0 answers 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.