Postado Março 22, 2015 10 anos Alguem me ajuda , eu coloquei o comando !bug no meu serv q teleporta o player pro templo mas ele n ta funcionando .. alguem sabe como arrumar ? ta ak o script : pos = {x=1030, y=910, z=7} function onSay(cid, words, param) if not getPlayerCondition(cid, CONDITION_INFIGHT) then doTeleportThing(cid,pos) doSendMagicEffect(getPlayerPosition(cid),3) doPlayerSendTextMessage(cid, 19, "Teleportado!") else doPlayerSendTextMessage(cid, 19, "Somente sem battle.") end end Testa trocar : if not getPlayerConditon Para : if not getCreatureCondition
Postado Março 22, 2015 10 anos function onSay(cid, words, param) local pos = {x=1030, y=910, z=7} if(getCreatureCondition(cid, CONDITION_INFIGHT)) == FALSE then doTeleportThing(cid, pos, true) doSendMagicEffect(getPlayerPosition(cid),3) doPlayerSendTextMessage(cid, 19, "Teleportado!") else return doPlayerSendTextMessage(cid, 19, "Somente sem battle.") end return true end Editado Março 22, 2015 10 anos por lucasromero (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.