View Single Post
  #3  
Old 07-31-2014, 02:36 PM
noudess
Discordant
 
Join Date: Sep 2012
Location: Upstate NY
Posts: 274
Default

So it looks like the variables are scoped to the npc_types id. I have 6 instances of mobname in the zone, using a spawngroup that chooses from a group of 4 various level versions. So, we end up with at least 2 identical npc_types spawning at diff spots. These duplicates share variables,

I can and have fixed it using variable arrays with $mobid as the index in the .pl file.

My questions that remain:

- I still see no wp arrivals until I zone in. Is that normal? They ARE NOT moving?

- It seems to me that the variables in a quest should scope to $mobid. It is illegal to have multiple instances of the same npc_type? I sure didnt think so.

- Can someone point me at the code that scopes these variables? I haven't been able tp parse through how that all happens yet. Maybe I can find a change so each instance of an NPC has its own variables.
Reply With Quote