mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 00:38:18 +00:00
Add world as a global variable for plugins.
This commit is contained in:
@@ -38,7 +38,7 @@ on :event, :second_object_action do |ctx, player, event|
|
||||
end
|
||||
|
||||
on :event, :second_npc_action do |ctx, player, event|
|
||||
npc = World.world.npc_repository.get(event.index)
|
||||
npc = $world.npc_repository.get(event.index)
|
||||
if BANKER_NPCS.include?(npc.id)
|
||||
player.start_action(BankAction.new(player, npc.position))
|
||||
ctx.break_handler_chain
|
||||
|
||||
Reference in New Issue
Block a user