Advertisement
RoksasNunes

Pedido

Apr 12th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local monsters = {"Pidgey", "Charmeleon", "Chikorita", "Bulbassaur", "Blastoise"}
  2. local randm = monsters[math.random(1, #monsters)]
  3. local maxm, id, quant = 5, 2148, 100 -- Maximo de monsters que pode sumonar / ID DO ITEM QUE CRIA, QUANTIDADE
  4.  
  5.  
  6. function onStepIn(cid, item, pos)
  7.     for i = 1, math.random(1,maxm) do
  8.         doCreateMonster(randm, getCreaturePosition(cid))
  9.             doCreateItem(id, quant, getCreaturePosition(cid))
  10.         end
  11.             return true
  12.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement