Dmy Recaida 11 Postado Junho 24, 2011 Share Postado Junho 24, 2011 (editado) Aew galera eu queria ajuda de vcs , eu botei para transformar no talkactions ai tava pegando tudo bem mais quando eu adicionei umas vocações a mais começo da erro falando "você não tem level suficiente" < ! porfavo me ajuda ai olha meu script \/ function onSay(cid, words, param) local voce = 206 local lvl = 400 local voc = 343 local outfit = {lookType=277,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfitTime = 10999999 local napis = "Aaaaah" local effekt = 32 ----------------------kod----------------------------- if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid,voc) doSetCreatureOutfit(cid, outfit, outfitTime) doPlayerSay(cid,napis,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt) else doPlayerSendCancel(cid,"Você Não tem level suficiente") end return 1 end function onSay(cid, words, param) local voce = 369 local lvl = 50 local voc = 370 local outfit = {lookType=280,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfitTime = 10999999 local napis = "Transformação" local effekt = 32 ----------------------kod----------------------------- if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid,voc) doSetCreatureOutfit(cid, outfit, outfitTime) doPlayerSay(cid,napis,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt) else doPlayerSendCancel(cid,"Você Não tem level suficiente") end return 1 end function onSay(cid, words, param) local voce = 370 local lvl = 100 local voc = 371 local outfit = {lookType=120,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfitTime = 10999999 local napis = "Transformação" local effekt = 234 ----------------------kod----------------------------- if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid,voc) doSetCreatureOutfit(cid, outfit, outfitTime) doPlayerSay(cid,napis,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt) else doPlayerSendCancel(cid,"Você Não tem level suficiente") end return 1 end function onSay(cid, words, param) local voce = 371 local lvl = 150 local voc = 372 local outfit = {lookType=110,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfitTime = 10999999 local napis = "Transformação" local effekt = 243 ----------------------kod----------------------------- if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then doPlayerSetVocation(cid,voc) doSetCreatureOutfit(cid, outfit, outfitTime) doPlayerSay(cid,napis,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt) else doPlayerSendCancel(cid,"Você Não tem level suficiente") end return 1 end Se me ajuda do REP! Editado Junho 24, 2011 por Mystogan Link para o comentário https://xtibia.com/forum/topic/159589-talkactions-de-transforma%C3%A7%C3%A3o-wodbo/ Compartilhar em outros sites More sharing options...
beto06 304 Postado Junho 25, 2011 Share Postado Junho 25, 2011 (editado) Área errada, meio confuso, você tentou juntar mais de 3 scripts... :rimbuk: function onSay(cid, words, param) local voce1 = 206 local voce2 = 369 local voce3 = 370 local voce4 = 371 local lvl1 = 400 local lvl2 = 50 local lvl3 = 100 local lvl4 = 150 local voc1 = 343 local voc2 = 370 local voc3 = 371 local voc4 = 372 local outfit1 = {lookType=277,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfit2 = {lookType=280,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfit3 = {lookType=120,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfit4 = {lookType=110,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} local outfitTime = 10999999 local napis1 = "Aaaaah" local napis2 = "Transformação" local effekt1 = 32 local effekt2 = 234 local effekt3 = 243 if getPlayerVocation(cid) == voce1 and getPlayerLevel(cid) >= lvl1 then doPlayerSetVocation(cid,voc1) doSetCreatureOutfit(cid, outfit1, outfitTime) doPlayerSay(cid,napis1,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt1) else doPlayerSendCancel(cid,"Você Não tem level suficiente") if getPlayerVocation(cid) == voce2 and getPlayerLevel(cid) >= lvl2 then doPlayerSetVocation(cid,voc2) doSetCreatureOutfit(cid, outfit2, outfitTime) doPlayerSay(cid,napis2,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt1) else doPlayerSendCancel(cid,"Você Não tem level suficiente") if getPlayerVocation(cid) == voce3 and getPlayerLevel(cid) >= lvl3 then doPlayerSetVocation(cid,voc3) doSetCreatureOutfit(cid, outfit3, outfitTime) doPlayerSay(cid,napis2,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt2) else doPlayerSendCancel(cid,"Você Não tem level suficiente") if getPlayerVocation(cid) == voce4 and getPlayerLevel(cid) >= lvl4 then doPlayerSetVocation(cid,voc4) doSetCreatureOutfit(cid, outfit4, outfitTime) doPlayerSay(cid,napis2,16) local pos = getPlayerPosition(cid) doSendMagicEffect(pos,effekt3) else doPlayerSendCancel(cid,"Você Não tem level suficiente") end return true end end end end Veja assim. Editado Junho 25, 2011 por Beto06 Link para o comentário https://xtibia.com/forum/topic/159589-talkactions-de-transforma%C3%A7%C3%A3o-wodbo/#findComment-1052353 Compartilhar em outros sites More sharing options...
Dmy Recaida 11 Postado Junho 25, 2011 Autor Share Postado Junho 25, 2011 (editado) Agora quando eu ligo o meu otserv aparece esse erro na script 'end' expected <to close 'if'at line 26>near 'elseif' ! vlw consegui aki levo meu thanks e um rep ! Editado Junho 25, 2011 por Mystogan Link para o comentário https://xtibia.com/forum/topic/159589-talkactions-de-transforma%C3%A7%C3%A3o-wodbo/#findComment-1052388 Compartilhar em outros sites More sharing options...
destruidor09 0 Postado Fevereiro 3, 2013 Share Postado Fevereiro 3, 2013 passa talkaction de tapion?????? Link para o comentário https://xtibia.com/forum/topic/159589-talkactions-de-transforma%C3%A7%C3%A3o-wodbo/#findComment-1459146 Compartilhar em outros sites More sharing options...
Posts Recomendados