-
Total de itens
3611 -
Registro em
-
Última visita
-
Dias Ganhos
60
Tudo que Roksas postou
-
Não está funcionando com erro no Distro, ou não está funcionando nada mesmo?
-
Ok, agora substitua por: <?xml version="1.0"?> <npc name="Padre Marcelo" script="data/npc/scripts/padre.lua" access="3" lookdir="1" walkinterval="2000" speed="200"> <health now="1" max="1"/> <look type="130" head="19" body="95" legs="0" feet="19"/> </npc> Prontinho! Boa sorte e BENÇA ) Espero ter ajudado.
-
dúvida [Encerrado] Bug do Narutibia ( Server 7.81 )
tópico respondeu ao marcelom8 de Roksas em Tópicos Sem Resposta
Me passe o link da onde você baixou seu server. Irei ver oque posso fazer, BENÇA ) -
dúvida [Encerrado] Bug do Narutibia ( Server 7.81 )
tópico respondeu ao marcelom8 de Roksas em Tópicos Sem Resposta
Não entendi, desculpe. Tem um comando que dá uma outfit é isso? E era só para ADM, mas os players descobriram? E não entendi o motivo de não poder usar acess 5... Creio que você não quer que eles saibam né? No começo da tag desse comando em talkactions.xml adicione isso: <talkaction log="no" E assim não aparecerá no Default quando você usar o comando, agora basta mudar o comando e eles não vão descobrir! -
dúvida [Encerrado] Skills demorando pra aumentar
tópico respondeu ao roriscrave de Roksas em Tópicos Sem Resposta
Parabéns Manyzin! Dúvida sanada. Tópico reportado! -
Muito Obrigado. Espero que haja serventia para você e para os outros! BENÇA )
-
Para arrumar o primeiro erro preciso que me passe o .XML do NPC. Que fica na pasta data/npcs. Provavelmente é Padre Marcelo.xml, o segundo erro já arrumei, basta substituir! -- Padre Marcelo ver 2.0 (by Conde Sapo) local focus1 = 0 local focus2 = 0 local talk_start = 0 local target = 0 local following = false local attacking = false local talkstate = 0 cidade = "SpiderBay" --- Colocar aqui o nome da cidade que estah o PADRE dia = os.date("%d") mes = os.date("%m") ano = os.date("%Y") mesesChr = {"Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"} mesBR = mesesChr[mes*1] Sex1 = 0 Sex2 = 0 function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(id, stackpos) if id == focus1 or id == focus2 then if id == focus1 then if Sex1 == 1 then ceremonyend('O noivo fugiu.') else ceremonyend('A noiva fugiu.') end else if Sex2 == 1 then ceremonyend('O noivo fugiu.') else ceremonyend('A noiva fugiu.') end end end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function ceremonyend(msg) focus1 = 0 focus2 = 0 talk_start = 0 talkstate = 0 selfSay(msg) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if talkstate == 1 then if cid == focus2 then if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then talkstate=2 doNpcSetCreatureFocus(focus1) selfSay('E você ' .. creatureGetName(focus1) .. '! Posso começar a cerimônia?') else ceremonyend('Volte quando estiver pront' .. Art2 .. '.') end end elseif talkstate == 2 then if cid == focus1 then if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then talkstate=3 else ceremonyend('Volte quando estiver pront' .. Art1 .. '.') end end elseif talkstate == 9 then if cid == focus1 then if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then talkstate=10 else ceremonyend('Volte quando estiver pront' .. Art1 .. '.') end end elseif talkstate == 11 then if cid == focus2 then if msgcontains(msg, 'yes') or msgcontains(msg, 'sim') then talkstate=12 else ceremonyend('Volte quando estiver pront' .. Art2 .. '.') end end end if msgcontains(msg, 'hi') and focus1 == 0 and getDistanceToCreature(cid) < 4 then -- Pessoa 1 no casamento doNpcSetCreatureFocus(cid) focus1 = cid talk_start = os.clock() Casado = getPlayerStorageValue(cid,2424) Sex1 = getPlayerSex(cid) if Sex1 == 1 then Art1 = "o" Art2 = "a" else Art1 = "a" Art2 = "o" end if Casado == -1 then selfSay('Oi, ' .. creatureGetName(cid) .. '! Eu sou um Padre, e posso te casar. Onde está '..Art2..' noiv'..Art2..'?!?') else selfSay('Você já é casad' .. Art1 .. '.') talkstate = 0 end end if msgcontains(msg, 'hi') and focus1 > 0 and focus2 == 0 and not(cid==focus1) and getDistanceToCreature(cid) < 4 then -- Pessoa 2 no casamento doNpcSetCreatureFocus(cid) Casado = getPlayerStorageValue(cid,2424) Sex2 = getPlayerSex(cid) if Sex2 == 1 then Art2 = "o" else Art2 = "a" end if Casado == -1 then if Sex1 == Sex2 then selfSay('Casamento homosexual ainda nao é permitido nesta paróquia.') else selfSay('Olá, ' .. creatureGetName(cid) .. '! Chegou '..Art2..'noiv'..Art2..'. Podemos começar?!?') focus2 = cid talk_start = os.clock() talkstate=1 end else selfSay('Você já é casad' .. Art2 .. '.') talkstate = 0 end end if msgcontains(msg, 'casar') and (focus1 == cid or focus2 == cid) then selfSay('Casamento é uma cerimônia sagrada. Oque Deus une, o homem não separa.') talk_start = os.clock() end if msgcontains(msg, 'divorcio') and (focus1 == cid or focus2 == cid) then setPlayerStorageValue(cid,2424,-1) ceremonyend('OK... Considere-se divorciad'..Art1..'.') end if string.find(msg, '(%a*)bye(%a*)') and (focus1 == cid or focus2 == cid) and getDistanceToCreature(cid) < 6 then ceremonyend('Vai com DEUS, ' .. creatureGetName(cid) .. '!') end end function onCreatureChangeOutfit(creature) end function onThink() if focus1 ~= 0 then -- Olha pro focus1 doNpcSetCreatureFocus(focus1) elseif focus2 ~= 0 then -- Olha pro focus2 doNpcSetCreatureFocus(focus2) else -- Fala uma fraze rand = math.random(1, 400) if rand == 1 then selfSay('Hic.') elseif rand == 2 then selfSay('AMÉM !') elseif rand == 3 then selfSay('Aleluia irmãos...') elseif rand == 4 then selfSay('Pode entrar...') elseif rand == 5 then selfSay('Domingo agora vai ter sermão.') end end if talkstate==3 and (os.clock() - talk_start) > 10 then selfSay('Estamos aqui reunidos na presença de Deus para unir essas duas pessoas,') talk_start = os.clock() talkstate=4 elseif talkstate==4 and (os.clock() - talk_start) > 6 then selfSay('nos sagrados votos do matrimônio.'); talk_start = os.clock() talkstate=5 elseif talkstate==5 and (os.clock() - talk_start) > 6 then selfSay('Se tiver alguem presente que conheça um motivo para evitar esse casamento,') talk_start = os.clock() talkstate=6 elseif talkstate==6 and (os.clock() - talk_start) > 8 then selfSay('que fale agora ou cale-se para sempre!'); talk_start = os.clock() talkstate=61 elseif talkstate==61 and (os.clock() - talk_start) > 6 then P1pos = getPlayerPosition(focus1) P2pos = getPlayerPosition(focus2) AtchinPos = {x=P1pos.x, y=P1pos.y+4, z=P1pos.z} CofPos = {x=P2pos.x-2, y=P2pos.y, z=P2pos.z} doSendAnimatedText(AtchinPos,"Atchin",5) doSendAnimatedText(CofPos,"Cof Cof",33) talkstate=62 elseif talkstate==62 and (os.clock() - talk_start) > 6 then AtchinPos = {x=P2pos.x+2, y=P1pos.y-1, z=P1pos.z} CofPos = {x=P2pos.x-1, y=P2pos.y+4, z=P2pos.z} doSendAnimatedText(AtchinPos,"Criii Criii",71) doSendAnimatedText(CofPos,"Psiuuu!",152) talkstate=7 elseif talkstate==7 and (os.clock() - talk_start) > 6 then selfSay('Comecemos então a cerimônia.'); talk_start = os.clock() talkstate=8 elseif talkstate==8 and (os.clock() - talk_start) > 6 then if Sex1 == 1 then Parc = "sua legitima esposa" else Parc = "seu legitimo marido" end doNpcSetCreatureFocus(focus1) selfSay('Você ' .. creatureGetName(focus1) .. ' aceita ' .. creatureGetName(focus2) .. ' como ' .. Parc .. '?') talk_start = os.clock() talkstate=9 elseif talkstate==10 and (os.clock() - talk_start) > 6 then if Sex2 == 1 then Parc = "sua legitima esposa" else Parc = "seu legitimo marido" end doNpcSetCreatureFocus(focus2) selfSay('Você ' .. creatureGetName(focus2) .. ' aceita ' .. creatureGetName(focus1) .. ' como ' .. Parc .. '?') talk_start = os.clock() talkstate=11 elseif talkstate==12 and (os.clock() - talk_start) > 6 then ---- No anel DELE o nome DELA (e vice-versa) TextoCasorio = 'FÓRUM TIBIANO DE NOTAS E OFICIOS\n\nCertidão de Casamento\n-----------------\n\nEste Documento comprova o amor puro e verdadeiro entre \n' .. getPlayerName(focus1) .. ' e ' .. getPlayerName(focus2) .. '.\n\nCerimônia realizada por Padre Marcelo.\nTestemunhas presentes confirmam o enlace.\n\n'..cidade..', '..dia..' de '..mesBR..' de '..ano anel1 = doPlayerAddItem(focus1,2121,1) doSetItemSpecialDescription(anel1,getPlayerName(focus2) .. ' - ' .. os.date("%d/%m/%y")) certif1 = doPlayerAddItem(focus1,1953,1) doSetItemText(certif1,TextoCasorio) anel2 = doPlayerAddItem(focus2,2121,1) doSetItemSpecialDescription(anel2,getPlayerName(focus1) .. ' - ' .. os.date("%d/%m/%y")) certif2 = doPlayerAddItem(focus2,1953,1) doSetItemText(certif2,TextoCasorio) setPlayerStorageValue(focus1,2424,1) setPlayerStorageValue(focus2,2424,1) ceremonyend('Eu vos declaro Marido e Mulher. Pode beijar a noiva.') talk_start = os.clock() talkstate=0 end if (os.clock() - talk_start) > 100 then if focus1 > 0 or focus2 > 0 then ceremonyend('Cerimônia interrompida por indecisão.') end end end
-
» CLASSIC PREMIUM V2 ! « Versão Testada: TFS 0.3.6: 8.60 Opa galera, esse é mais um tópico meu, agora de Estagiário :)) Neste tópico irei apresentar-lhes o Classic Premium v2, que usei algumas coisas de base do Perfect System (by Vodkart), agora contém: • GOD pode checar quantos Premium Days o player tem, pelo comando /checkdays NOMEDOPLAYER • GOD também pode adicionar Premium Days, pelo comando /addpremium NOME, QUANTIDADE • Temos também o comando /removedays NOME, QUANTIDADE que o GOD poderá fazer. • Além disso, temos mais duas novidades, os comandos: !changender e !removeskull, ambos removem 5 Premium Days do player! » Comandos de GOD Vamos lá, primeiramente vá na pasta data/talkactions, crie um arquivo chamadopremiumtalk.lua e adicione isso dentro: function onSay(cid, words, param) local player = getPlayerByName(param) local t = string.explode(param, ",") if words == "/checkdays" then if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires param.") return true end if not isPlayer(player) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end return doPlayerPopupFYI(cid, "Player checked have "..getPlayerPremiumDays(player).." days of Premium Account!") end if words == "/addpremium" then local t = string.explode(param, ",") local player = getPlayerByNameWildcard(t[1]) if not tonumber(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end if(not player)then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end doPlayerAddPremiumDays(player, tonumber(t[2])) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You has been added "..tonumber(t[2]).." days of Premium Account to the player! ") doRemoveCreature(player) end if words == "/removedays" then local t = string.explode(param, ",") local player = getPlayerByNameWildcard(t[1]) if not tonumber(t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end if(not player)then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player not found.") return true end doPlayerRemovePremiumDays(player, tonumber(t[2])) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You has been removed "..tonumber(t[2]).." Premium Account Days of the player!") end return true end E no arquivo talkactions.xml adicione a tag que vêm a seguir: <talkaction words="/addpremium;/removedays;/checkdays" access="4" event="script" value="premiumtalk.lua"/> » Premium Door e Premium Scroll Muito bem, agora na pasta data/actions/scripts, crie um arquivo chamado scroll.lua e adicione isso dentro: local days_gain = 30 -- Dias que ganham function onUse (cid,item,frompos,item2,topos) if not doRemoveItem(item.uid) then return true end doPlayerAddPremiumDays(cid, days_gain) doSendMagicEffect(getCreaturePosition(cid), 14) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você acaba de ganhar 30 dias de Premium Account, terá áreas exclusivas e 35% a mais de EXP como benefício!") return true end Crie outro arquivo, mas agora com o nome de premiumdoor.lua e ponha isso dentro: function onUse(cid, item, frompos, item2, topos) if not isPremium(cid) then doPlayerSendTextMessage(cid,22,"Você precisa ter Premium Account para passar!") return false end doTransformItem(item.uid, item.itemid + 1) doTeleportThing(cid, frompos, true) return true end Abra o arquivo actions.xml e adicione essas tags: <action itemid="9004" event="script" value="scroll.lua"/> <action actionid="7779" script="premiumdoor.lua"/> OBS: Para fazer com que a porta seja para Premiums, no seu Map Editor, adicione a seguinte ACTIONID nela: 7779! » Classic Premium Tile Em data/movements/scripts, crie um arquivo chamado premiumtile.lua e adicione isso dentro: function onStepIn(cid, item, position, fromPosition) if not isPremium(cid) then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você não tem acesso Premium Account!") doSendMagicEffect(getCreaturePosition(cid), 2) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Bem Vindo á Área Premium!") return true end Ea tag no arquivo movements.xml coloque: <movevent type="StepIn" actionid="19456" event="script" value="premiumtile.lua"/> Para fazer com que apenas Premiums passe pelo piso, adicione a ACTIONID 19456 pelo seu Map Editor no piso! » Classic Mods Na pasta do seu OT, vá na pasta mods, crie um arquivo chamado classic_changender.xml e coloque isso dentro: <?xml version="1.0" encoding="UTF-8"?> <mod name="ChangeSex Classic" version="1.0" author="Roksas" enabled="yes"> <config name="changender_config"><![CDATA[ config = { costPremiumDays = 5 } ]]></config> <talkaction words="!changender" event="buffer"><![CDATA[ domodlib('changender_config') if(getPlayerSex(cid) >= 2) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce nao tem sexo para mudar!") return end if(getPlayerPremiumDays(cid) < config.costPremiumDays) then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Desculpe, voce nao tem " .. config.costPremiumDays .. " Premium Days necessarios!") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) return end if(getPlayerPremiumDays(cid) < 65535) then doPlayerAddPremiumDays(cid, -config.costPremiumDays) end doPlayerSetSex(cid, getPlayerSex(cid) == PLAYERSEX_FEMALE and PLAYERSEX_MALE or PLAYERSEX_FEMALE) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce mudou seu sexo e isso lhe custou " .. config.costPremiumDays .. " days de Premium Account! Relogue para que faca efeito.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED) ]]></talkaction> </mod> E crie outro arquivo, mas com o nome de classic_removeskull.xml e adicione isso: <?xml version="1.0" encoding="UTF-8"?> <mod name="Classic Remover" version="1.0" author="Roksas" enabled="yes"> <talkaction words="!removeskull" event="script"><![CDATA[ local noRemove = {SKULL_YELLOW} local playerSkull = getPlayerSkullType(cid) if isInArray(noRemove, playerSkull) then doPlayerSendCancel(cid, "Voce nao pode remover esse tipo de skull.") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true elseif playerSkull == SKULL_NONE or getPlayerPremiumDays(cid) < 5 then doPlayerSendCancel(cid, "Voce nao tem skull ou 5 days de Premium Account!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return true else db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") doPlayerSendTextMessage(cid, 27, "Seus frags,skull e 5 days de Premium Account foram removidos!") doPlayerRemovePremiumDays (cid,5) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) doSendAnimatedText(getPlayerPosition(cid), "POFF!", 180) doCreatureSetSkullType(cid,0) doPlayerSetSkullEnd(cid, 0, playerSkull) end return true ]]></talkaction> </mod> » Classic Premium Rates Abra a pasta do seu OT, vá em data/creaturescripts/scripts, adicione um arquivo lá chamado premiumrate.lua e coloque isso dentro dele: function onLogin(cid) local rate = 1.35 local days = getPlayerPremiumDays(cid) if isPremium(cid) then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você tem "..((rate - 1)*100).."% de EXP em vantagem, Ainda lhe restam "..days.." dias de Premium!") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tornesse Premium e tenha "..((rate - 1)*100).."% a mais de EXP!") end return true end Agora abra o arquivo login.lua na mesma pasta, procure por um trecho mais ou menos assim: registerCreatureEvent(cid, "kill") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "PlayerLogout") registerCreatureEvent(cid, "onPrepareDeath") Ao encontrar, adicione isso no fim ou no começo ou no meio deles: registerCreatureEvent(cid, "ExpVip") Muito bem, agora no arquivo creaturescripts.xml adicione essa tag: <event type="login" name="ExpVip" script="premiumrate.lua"/> Explicando: Para configurar as rates procure por esse trecho no script: local rate = 1.35 O número 35, significa a porcentagem. Ou seja, 35% de Exp Rate em vantagem, ajuste como quiser: 20, 50, 60... Bom galera, isso foi tudo. Espero que tenham gostado da versão v2 do Classic Premium! Aguardo respostas, sugestões e críticas a respeito! Agradeço Vodkart por algumas funções e bases. Encerrarei com algumas ScreenShoots do meu Sistema! Obrigado e BENÇA ) » SCREENSHOOTS
-
pprgfpedro, Sabe oque é ripping? Você postou um Tutorial sem créditos, como se fosse seu. Isso é ripping! Por favor coloque os devidos créditos antes que tomem atitudes pouco chatas...
-
Exato, sempre seja otimista e não diga que não é possível! Fechem o tópico!
-
Ok, recomendo o TFS 0.4 REV 3884. Boa sorte! Reportado para que fechem.
- 4 respostas
-
- arena tibia
- tibia
-
(e 1 mais)
Tags:
-
O certo seria "DÚVIDA SANADA"! Por que não é possível? Se eles fizeram é possível. Basta ter paciência e saber o que está fazendo. Tem como sim! Mas para isso precisa-se um bom mapper, um bom Programador!
-
Até hoje só encontrei de 8.60 acima. Vejo você pedindo muitos sistemas para 8.40. Oque seria? Por que não procura mudar para 8.60?
- 4 respostas
-
- arena tibia
- tibia
-
(e 1 mais)
Tags:
-
Aprovação de Tutoriais é área incorreta? --'
-
Muito interessante, procure conforme der, colocar também de Caves, Montains. Parabéns!
-
[Encerrado] [Duvida] Estou com uma duvida de junçao de servidores
tópico respondeu ao Liman de Roksas em Tópicos Sem Resposta
Nada não, qualque coisa só perguntar! Disponha do XTibia. Dúvida sanada, reportado! -
http://www.xtibia.com/forum/topic/173114-duvida-retirando-bug-do-rme-860/ Seria isso sua dúvida?
-
[Encerrado] (Duvida) Account Mananjer
tópico respondeu ao BrunooMaciell de Roksas em Tópicos Sem Resposta
Não tem script algum, o Account Manager ele só pode por para escolher 5 vocações. Ou seja 1,2,3, e 4. (Knight,Paladin,Sorcerer e Druid). MAS, para adicionar mais uma. Você abre o vocations.xml, aperte CTRL+F, digite "prevoc" sem as aspas. Provavelmente o valor que encontrará será "0", seja qual for, apague-o e mude para o ID da sua nova vocação! -
[Encerrado] [DÚVIDA] Pokemon PDA By Slicer
tópico respondeu ao TraaNe de Roksas em Tópicos Sem Resposta
Aqui está, aperte CTRL+F e digite "DIAMOND" sem as aspas, substitua pelo ID do Diamond. local focus = 0 local talk_start = 0 local conv = 0 local target = 0 local following = false local attacking = false local talkState = {} local finalname = "" function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye sir!') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msge) local msg = string.lower(msge) local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if focus == cid then talk_start = os.clock() end local auras = {"red aura", "blue aura", "green aura", "yellow aura", "white aura", "gray aura", "cyan aura", "purple aura", "orange aura"} if (msgcontains(msg, 'hi') and (focus == 0) and (getDistanceToCreature(cid) <= 4)) then focus = cid conv = 1 talk_start = os.clock() selfSay("Hello, "..getCreatureName(cid).."! I can give your pokemon a nickname or i can put in your pokemon a elemental aura, if he is boosted at least +50...") elseif (msgcontains(msg, "no") or msgcontains(msg, "bye")) and focus == cid and conv ~= 3 then selfSay("No problem then, sir. Come back when you feel like it!") focus = 0 elseif (msgcontains(msg, "nick") or msgcontains(msg, "nickname")) and focus == cid and conv == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end selfSay("Put your pokemon at the main slot and tell me, what nickname would you like me to give to your pokemon?") conv = 3 elseif msgcontains(msg, "aura") and focus == cid and conv == 1 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end local pb = getPlayerSlotItem(cid, 8).uid if not getItemAttribute(pb, "boost") or getItemAttribute(pb, "boost") < 50 then selfSay("Sorry, your pokemon is not boosted +50!") focus = 0 return true end if getItemAttribute(pb, "aura") and getItemAttribute(pb, "aura") ~= "" then selfSay("Sorry, your pokemon already have a elemental aura!") focus = 0 return true end if #getCreatureSummons(cid) >= 1 then selfSay("Return your pokemon for your pokeball!") focus = 0 return true end selfSay("You can choose one of these auras: red aura, blue aura, green aura, yellow aura, white aura, gray aura, cyan aura, purple aura, orange aura. Which one do you prefer?") conv = 9 elseif isInArray(auras, msg) and focus == cid and conv == 9 then selfSay("Are you sure that you want to put a "..msg.." in your pokemon?") conv = 11 local d, e = msg:find('(.-) aura') auraFinal = string.sub(msg, d -1, e - 5) elseif msgcontains(msg, "yes") and focus == cid and conv == 11 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Sorry, you don't have a pokemon in the main slot!") focus = 0 return true end local pb = getPlayerSlotItem(cid, 8).uid if not getItemAttribute(pb, "boost") or getItemAttribute(pb, "boost") < 50 then selfSay("Sorry, your pokemon is not boosted +50!") focus = 0 return true end if #getCreatureSummons(cid) >= 1 then selfSay("Return your pokemon for your pokeball!") focus = 0 return true end doItemSetAttribute(pb, "aura", auraFinal) selfSay("Done! Now your pokemon have a new elemental aura. Enjoy it!") focus = 0 conv = 0 elseif conv == 3 and focus == cid then local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"} local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"} for a = 1, #table do if string.find(msg, table[a]) then selfSay("Sorry, the nick has invalid symbols.") return true end end if string.len(msg) <= 1 or string.len(msg) >= 19 then selfSay("Sorry, that nick is too long or too short!") return true end local pokename = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke") selfSay("Are you sure that you want to change your's "..pokename.." name to \""..msge.."\"? This is going to cost you 10 hundred dollars.") conv = 5 finalname = msge elseif msgcontains(msg, "yes") and focus == cid and conv == 5 then if getPlayerSlotItem(cid, 8).uid <= 0 then selfSay("Where is your pokemon?! You have to keep it at the main slot!") focus = 0 return true end if doPlayerRemoveItem(cid, DIAMOND,1) == false then selfSay("You don't have enough money to afford this service, come back later.") focus = 0 conv = 0 return true end local nick = ""..finalname.."" local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."." selfSay("Done! Your pokemon now has a new name, enjoy it!") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick) local newdes = description.."\nIt's nickname is: "..finalname.."." doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes) local hp = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "happy") doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "happy", hp + 25) if #getCreatureSummons(cid) >= 1 then adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid) end focus = 0 conv = 0 end end local intervalmin = 38 local intervalmax = 70 local delay = 25 local number = 1 local messages = {"Want to give some nicknames to your pokemon? Talk to me!", "Did you know your pokemon gets a little happier when you give him a nickname?", "Every pokemon wants to have a nickname! Come talk to me!", "Pokemons love nicknames, you should give yours one.", } function onThink() if focus == 0 then selfTurn(1) delay = delay - 0.5 if delay <= 0 then selfSay(messages[number]) number = number + 1 if number > #messages then number = 1 end delay = math.random(intervalmin, intervalmax) end return true else if not isCreature(focus) then focus = 0 return true end local npcpos = getThingPos(getThis()) local focpos = getThingPos(focus) if npcpos.z ~= focpos.z then focus = 0 return true end if (os.clock() - talk_start) > 45 then focus = 0 selfSay("Come back some other time!") end if getDistanceToCreature(focus) > 3 then selfSay("Enjoy!") focus = 0 return true end local dir = doDirectPos(npcpos, focpos) selfTurn(dir) end return true end -
Não é a pasta cara, são todos arquivos XML que tem dentro dela.
-
[Encerrado] [Duvida] Estou com uma duvida de junçao de servidores
tópico respondeu ao Liman de Roksas em Tópicos Sem Resposta
Ok, mande! @EDIT Aqui está, http://www.4shared.com/rar/jQ99WtQm/Pokemon_Dash_Advanced.html -
Vá no Map Editor, depois em File>Import> Monsters/NPCS, e aí você seleciona a pasta monsters, e dentro dela todos os monsters e da Ok, o mesmo com os NPCS!
-
pedido Queria um script que perdesse 2 leveis acada morte
pergunta respondeu ao knightkunn de Roksas em Scripts
Tente assim, na pasta data/globalevents/scripts adicione um arquivo chamado morreu.lua, coloque isso dentro: function onDeath(cid, corpse, killer) db.executeQuery("UPDATE `players` SET `level` = ".. level - 2 .." WHERE `id` = ".. pid ..";") end return TRUE end E em globalevents.xml adicione essa tag: <event type="death" name="morreu" event="script" value="morreu.lua"/>
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.