ahmedhaies

kill

Mar 16th, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1.         when 2493.kill with pc.get_map_index() == 208 begin
  2.             char_log(pc.get_player_id(), 'LAIR', pc.get_channel_id() ..' DRAGON KILLED')
  3.             game.set_event_flag("dragon_lair_alive", 0) -- dragon is dead
  4.             game.drop_item_with_ownership(71123, 4) -- dropping dragon scale
  5.             game.drop_item_with_ownership(71129, 3) -- dropping toe nail
  6.             notice_multiline(string.format(gameforge.dragon_lair_access._180_notice, pc.name), notice_all) -- the dragon has been killed by <name>!
  7.             local settings = dragon_lair_access.get_settings()
  8.             purge_area(settings.room_area.first.x, settings.room_area.first.y, settings.room_area.last.x, settings.room_area.last.y)
  9.         end
Advertisement
Add Comment
Please, Sign In to add comment