Postado Janeiro 30, 2015 10 anos Autor Compliquei a coisa simples: function onStepIn(cid, item, pos) if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then doSetCreatureOutfit(cid, 123, -1) elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then doSetCreatureOutfit(cid, 124, -1) elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then doSetCreatureOutfit(cid, 125, -1) elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then doSetCreatureOutfit(cid, 126, -1) else return false end return true end "O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
Postado Janeiro 30, 2015 10 anos function onStepIn(cid, item, pos) if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then doPlayerAddOutfit(cid,123,1) elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then doPlayerAddOutfit(cid,124,1) elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then doPlayerAddOutfit(cid,125,1) elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then doPlayerAddOutfit(cid,127,1) else return false end return true end Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado). Tópicos: [FAQ] BBCODE [LIB] Constant [RME] Administrando bordas. [TALK] Broadcast Editável. [TALK] Sugest. [TALK] Checkpoint. [MOVE] Pântano pegajoso. [ACTION] Piggy Bank. (Cassino). [GLOBAL] Uptime Ad. [C0DE] Consertando 'Invalid Password' [PROGRAM] Quest Maker
Postado Janeiro 30, 2015 10 anos Autor Mano eu entro no Teleport e não acontece nada. Não da mais erro na distro, mas n transforma. "O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
Postado Janeiro 30, 2015 10 anos function onStepIn(cid, item, pos) if (getPlayerVocation(cid) >= 1 and getPlayerVocation(cid) <= 14) then doCreatureChangeOutfit(cid, 123) elseif (getPlayerVocation(cid) >= 17 and getPlayerVocation(cid) <= 30) then doCreatureChangeOutfit(cid, 124) elseif (getPlayerVocation(cid) >= 33 and getPlayerVocation(cid) <= 46) then doCreatureChangeOutfit(cid, 125) elseif (getPlayerVocation(cid) >= 47 and getPlayerVocation(cid) <= 59) then doCreatureChangeOutfit(cid, 126) else return false end return true end To testando as funções, o seu servidor não aceitou a primeira que eu usei... Se quiser sua dúvida tirada, mande PM com os links, e não com a dúvida (outros podem ter a mesma dúvida, e o fórum serve para ser usado). Tópicos: [FAQ] BBCODE [LIB] Constant [RME] Administrando bordas. [TALK] Broadcast Editável. [TALK] Sugest. [TALK] Checkpoint. [MOVE] Pântano pegajoso. [ACTION] Piggy Bank. (Cassino). [GLOBAL] Uptime Ad. [C0DE] Consertando 'Invalid Password' [PROGRAM] Quest Maker
Postado Janeiro 30, 2015 10 anos Autor pq vc n manda uma função pra eu add na lib. se voce quiser poder dar uma pausa neste topico e arrumar amanha e ver este aq: http://www.tibiaking.com/forum/topic/50791-effect-ao-transformar/ UP "O sucesso é uma consequência e não um objetivo. A persistência é o caminho do êxito".
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.