Cara, posso até estar falando merda coisa errada pra você...
Mas não custa nada tentar.
#curiosidade_minha'
Deixe essa parte do Script...
if getCreatureOutfit(cid).lookType == 288 then doSetCreatureOutfit(cid, golem, -1) elseif getCreatureOutfit(cid).lookType == 125 then doSetCreatureOutfit(cid, electrode, -1) elseif getCreatureOutfit(cid).lookType == 123 then doSetCreatureOutfit(cid, voltorb, -1) elseif getCreatureOutfit(cid).lookType == 115 then doSetCreatureOutfit(cid, sandslash, -1) elseif getCreatureOutfit(cid).lookType == 43 then doSetCreatureOutfit(cid, sandshrew, -1)
Deixe-a assim:
if getCreatureOutfit(cid).lookType == 288 then doSetCreatureOutfit(cid, golem, 1) elseif getCreatureOutfit(cid).lookType == 125 then doSetCreatureOutfit(cid, electrode, 1) elseif getCreatureOutfit(cid).lookType == 123 then doSetCreatureOutfit(cid, voltorb, 1) elseif getCreatureOutfit(cid).lookType == 115 then doSetCreatureOutfit(cid, sandslash, 1) elseif getCreatureOutfit(cid).lookType == 43 then doSetCreatureOutfit(cid, sandshrew, 1)
E teste ae'
Poste o resultado...
Abraços e boa sorte'





info
Group: Visconde
Joined: 07/01/12
Posts: 495
Reputation: +48
Gender: Masculino
Tibia Character: Nem Tenho
Bom Galera, eu tava tentando fazer uma talkaction assim :
quando você fala
!ad
o seu monstro se transforma em outro.
explicando:
eu usei como base o spell rollout para fazer e o script saiu assim :
function onSay(cid, ad) return true end local golem = {lookType = 288} local sandslash = {lookType = 285} local sandshrew = {lookType = 284} local electrode = {lookType = 286} local voltorb = {lookType = 287} function onCastTalk(cid, ad) if getCreatureCondition(cid, CONDITION_OUTFIT) == true then return true end doCreatureSay(cid, "ROLLOUT!", TALKTYPE_PLAYER) if getCreatureOutfit(cid).lookType == 288 then doSetCreatureOutfit(cid, golem, -1) elseif getCreatureOutfit(cid).lookType == 125 then doSetCreatureOutfit(cid, electrode, -1) elseif getCreatureOutfit(cid).lookType == 123 then doSetCreatureOutfit(cid, voltorb, -1) elseif getCreatureOutfit(cid).lookType == 115 then doSetCreatureOutfit(cid, sandslash, -1) elseif getCreatureOutfit(cid).lookType == 43 then doSetCreatureOutfit(cid, sandshrew, -1) end endbom, quando eu digito !ad no chat nao aconteçe nada, porem tambem n ta dando nenhum erro no console.
porem o pokemon nao pega a nova looktype.
eu queria que alguem se puder me ajudasse a fazer ;x tipow você tem o pokemon xxxx se ele tiver a looktype xxxx e você falar !ad e le vai ganhar um looktype xxxx.
vllw e rep+ por 2 dias pra qm ajudar.
Edited Fevereiro 20 by Pokemonultimatetwo