Dosummoncreature (Name, Position)

ghostface
em Lixeira Pública

ghostface

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 09/07/10Posts: 7

Script.lua

 

function onStepIn(cid, item, position, fromPosition)
if getGlobalStorageValue (2000) >= 1 then
  doCreateMonster (demon, {x=281,y=474,z=10})
end
end

 

Error GUI!

 

[08/08/2010 00:32:04] [Error - MoveEvents Interface] 
[08/08/2010 00:32:04] data/movements/scripts/hunterroom.lua:onStepIn
[08/08/2010 00:32:04] Description: 
[08/08/2010 00:32:04] (luaDoCreateMonster) Monster with name '' not found

@Ghostface = Flatron.Mkn

singi.png

by ME

 

felzan

Caos manager
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 20/04/09Posts: 279

Deve escrever suas duvidas, xD

ta vendo na 4ª linha do erro?

Monster with name '' not found

monstro com nome''não existe

ou seja monstro entre apostrofos não existe

sabe algo de inglês? básico que seja?

iria ajudar.

coloque entre apostrofos os monstros.

e o título não condiz com a duvida.

 

aqui esta o certo, acho.

function onStepIn(cid, item, position, fromPosition)
if getGlobalStorageValue (2000) >= 1 then
  doCreateMonster ('demon', {x=281,y=474,z=10})
end
end

joaohd

Neox Boy
avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 03/02/09Posts: 361Char no Tibia: Fearless Man

Use o doSummonCreature mesmo.

 

Ou assim:

 

function onStepIn(cid, item, position, fromPosition)
if getGlobalStorageValue (2000) >= 1 then
  doCreateMonster("Demon", {x=281,y=474,z=10})
end
return TRUE
end

 

flw