Alex King 0c105a2b91
[Bug Fix] Fix NPC Reference in EVENT_SPAWN (#2712)
* [Bug Fix] Fix NPC Reference in EVENT_SPAWN

# Notes
- Event parsing was too early and memory wasn't fully allocated, meaning that sometimes you could use the NPC reference and other times you couldn't.
- Most people worked around this by setting timers in `EVENT_SPAWN` then using `EVENT_TIMER` to handle the stuff they wanted to do on spawn.

# Example Code in Perl
```pl
sub EVENT_SPAWN {
	quest::shout($npc->GetCleanName() . " just spawned with an ID of " . $npc->GetID() . " and an NPC Type ID of " . $npc->GetNPCTypeID() . ".");
}```

* Update bot.cpp
2023-01-08 11:27:17 -05:00
..
2021-08-31 01:24:21 -05:00
2023-01-01 22:53:34 -05:00
2018-03-04 13:54:28 -05:00
2022-05-09 20:49:43 -05:00
2022-05-09 20:49:43 -05:00
2017-05-15 15:46:19 -07:00
2018-11-07 21:55:12 -08:00
2022-10-12 20:14:44 -05:00
2020-01-31 20:25:06 -06:00
2023-01-01 22:53:34 -05:00
2023-01-01 22:53:34 -05:00