LightMistic

Agator - Quest

Jun 2nd, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. quest say_mob begin
  2.     state start begin
  3.         when kill begin
  4.             local SET_MOB = {
  5.                                         {101, "Ciao, sono un cane"},
  6.                                         {102,  "Ciao, sono un Lupo"},
  7.                                         {103, "Ciao, sono un Lupo Alfa"},
  8.                                         }
  9.    
  10.             for i = 1, table.getn (SET_MOB) do
  11.                 if npc.get_race() == SET_MOB[i][1] then
  12.                     syschat (string.format("%s: %s", mob_name(SET_MOB[i][1]), SET_MOB[i][2]))
  13.                     return
  14.                 end
  15.             end    
  16.         end
  17.     end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment