Advertisement
RoksasNunes

Script

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