Postado Maio 21, 2015 10 anos ola galera to com um problema quando todas salas de treiners estão lotadas aparece seguinte erro [21/5/2015 15:18:20] [Error - MoveEvents Interface] [21/5/2015 15:18:20] data/movements/scripts/trainingroom.lua:onStepIn [21/5/2015 15:18:20] Description: [21/5/2015 15:18:20] (luaGetThingPosition) Thing not found gostaria tb de por so para players level 50 entrar no tp function onStepIn(cid, item, position, fromPosition) for i = 2700, 3900 do local pos = getThingPos(i) if not isPlayer(getTopCreature(pos).uid) then doTeleportThing(cid, pos) doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(position, CONST_ME_TELEPORT) doSendMagicEffect(pos, CONST_ME_TELEPORT) return true end doTeleportThing(cid, fromPosition, true) doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) end return true end I like
Postado Maio 21, 2015 10 anos Testa assim function onStepIn(cid, item, position, fromPosition) for i = 2700, 3900 do local pos = getThingPos(i) if not isPlayer(getTopCreature(pos).uid) then if getPlayerLevel(cid) >= 50 then doTeleportThing(cid, fromPosition) doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(position, CONST_ME_TELEPORT) doSendMagicEffect(pos, CONST_ME_TELEPORT) return true end doTeleportThing(cid, fromPosition, true) doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) end return true end
Postado Maio 21, 2015 10 anos Autor Em 21/05/2015 em 18:24, TopllDanStar disse: Testa assim function onStepIn(cid, item, position, fromPosition) for i = 2700, 3900 do local pos = getThingPos(i) if not isPlayer(getTopCreature(pos).uid) then if getPlayerLevel(cid) >= 50 then doTeleportThing(cid, fromPosition) doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(position, CONST_ME_TELEPORT) doSendMagicEffect(pos, CONST_ME_TELEPORT) return true end doTeleportThing(cid, fromPosition, true) doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) end return true end agora n ta indo para sala so fica com mensagem e vc esqueceu de adicionar um "end" I like
Postado Maio 21, 2015 10 anos Em 21/05/2015 em 18:29, loreal disse: agora n ta indo para sala so fica com mensagem e vc esqueceu de adicionar um "end" Teste assim function onStepIn(cid, item, position, fromPosition) for i = 2700, 3900 do local pos = getThingPos(i) if not isPlayer(getTopCreature(pos).uid) and getPlayerLevel(cid) < 50 then doTeleportThing(cid, fromPosition, true) doCreatureSay(cid, 'Using a tool to cast spells or to keep your character online is ok.', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(position, CONST_ME_TELEPORT) doSendMagicEffect(pos, CONST_ME_TELEPORT) return true end doTeleportThing(cid, fromPosition, true) doCreatureSay(cid, 'All training slots are taken', TALKTYPE_ORANGE_1, false, cid) doSendMagicEffect(fromPosition, CONST_ME_TELEPORT) end return true end
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.