Ir para conteúdo

joadson

Membro
  • Registro em

Tudo que joadson postou

  1. Aqui, tente esse... vá em action/script e crie um script chamado pdoor.lua e coloque isso dentro function onUse(cid, item, frompos, item2, topos) reqvoc = getPlayerVocation(cid) if item.uid == 8200 then -- mude para 8201 se quando for usar o mesmo script para outra vocação e 8203.... if reqvoc == 3 or recvoc == 7 then -- Aqui é o id da vocação, 3 é paladin e 7 é royal pos = getPlayerPosition(cid) if pos.x == topos.x then if pos.y < topos.y then pos.y = topos.y + 1 else pos.y = topos.y - 1 end elseif pos.y == topos.y then if pos.x < topos.x then pos.x = topos.x + 1 else pos.x = topos.x - 1 end else doPlayerSendTextMessage(cid,22,'Stand in front of the door.') return 1 end doTeleportThing(cid,pos) doSendMagicEffect(topos,12) else doPlayerSendTextMessage(cid,22,'Somente Paladins entram aqui.') -- Mensagem end return 1 else return 0 end end e em action,xml coloque <action uniqueid="8200" script="pdoor.lua" /> PS: quando for criar outra voc, mude o uniqueID aqui tbm, coloque o mesmo do pdoor.lua feito isso é só colocar actionID 8200, nas portas de paladin.
  2. Tenho, me add no skype e conversamos melhor. JoadsonAion
  3. Windows 7 e já tentei com tudo que você imaginar
  4. Olá, estou há um bom tempo sem mexer com otservs, então hoje decidi reabrir um mapa para dar uma conferida e me deparei com o seguinte erro(segue imagem abaixo) Já fiz de tudo, desinstalei, limpei os registros, instalei novamente, desativei o DEP do windows, usei varias versoes de tibia... O RME abre normal, porem quando dou load em algum mapa ou crio um novo/new map, dá esse abençoado erro... Não sei o que fazer Se alguém souber como fixar esse problema, agradeço. PS: Já usei o RME 2.1, 2.2 e agora o novo que contem até o 10.71 e todos dão o mesmo erro.
  5. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Tente esse aqui... Vá em creaturescript/script e crie um arquivo chamado vipFim.lua e coloque o codigo abaixo function onLogin(cid) if getPlayerStorageValue(cid, 85258) <= 0 and string.find(tostring(getCreatureName(cid)),"(VIP)") then doPlayerSendTextMessage(cid,25,"Você será kickado em 5 segundos para mudança de nome.") -- Mensagem sobre o kick db.executeQuery("UPDATE `players` SET `name` = '"..getCreatureName(cid).."' WHERE `id` = "..getPlayerGUID(cid)..";") addEvent(name, 5*1000, cid) end return TRUE end function name(cid) if isPlayer(cid) then db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";") doRemoveCreature(cid) end end e em creature.xml coloque <event type="login" name="vipFim" event="script" value="vipFim.lua"/> feito isso, abra o login.lua e coloque o seguinte register. registerCreatureEvent(cid, "vipFim") Teste e veja o que deu.
  6. Editando o Script, não estava do jeito que você pediu... Breve reedito aqui. --------------------------------------------EDIT--------------------------- Tente aqui, coloquei a função que reseta o level, não sei se irá funcionar os 10% de HP/MP, mas irei fixar caso não funcione. -------------------------------- Script made by teh_pwnage --------------------------------- --------------- Special thanks to: mokerhamer, Xidaozu and Jiddo, deaths'life -------------- ------------------------------- Thanks also to everyone else ------------------------------- ------------------------------ NPC based on Evolutions V0.7.7 ------------------------------ -------------------------------------------------------------------------------------------- local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end -- OTServ event handling functions end function creatureSayCallback(cid, type, msg) -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. if(npcHandler.focus ~= cid) then return false end preco = getPlayerLevel(cid)*3 bless = getPlayerBlessing(cid,1) vezes = getPlayerStorageValue(cid,7777) rubys = (getPlayerLevel(cid)*4000)*(vezes*30*2)/1000000 newlevel = 8 -- level após reset newexp = 4200 -- nova experiencia após reset if msgcontains(msg, 'necklace') then selfSay('I only need a mysterious, dragon breath, scorpion, platinum, fluids and vampire tooth, accept change all for a Elemental necklace?') talk_state = 1 elseif msgcontains(msg, 'amulet') then selfSay('I only need a Ialamar, frozzen, sickness, Samantha, Mastafar, priest and eletric, accept change all for a Spirit Elemental amulet?') talk_state = 2 elseif msgcontains(msg, 'magic') then selfSay('I only need a Merlian, relic of the hell, Broonier, Thordain, dark wyzard, angel and gaya, accept change all for a Elemental magic amulet?') talk_state = 3 elseif msgcontains(msg, 'energyze') then selfSay('I can energyze your necklace for 50k, amulet for 100k or your magic amulet for 150k, do you want energyze?') talk_state = 4 elseif msgcontains(msg, 'bless') or msgcontains(msg, 'blessing') then selfSay('Bless a mortal? Hmm... Sure I can bless, but it will not be cheap, what do you say about ' .. preco .. 'k?') talk_state = 5 elseif msgcontains(msg, 'reset') then if vezes == -1 or vezes == 0 then selfSay('Reset a god? Hmm... First time? Ok, i will do it free this time!') talk_state = 6 else selfSay('Reset a god? Hmm... Sure I can, but it will not be cheap, what do you say about ' .. rubys .. ' ruby coins?') talk_state = 6 end elseif msgcontains(msg, 'job') then selfSay('I am a servent of Merlian!') elseif msgcontains(msg, 'offer') then selfSay('I can do an element item or energyze your element item, i only need all "necklace", "amulet" ou "magic" amulet, also can bless a little mortal and reset a god!') elseif msgcontains(msg, 'sell') then selfSay('I am not a merchant!') elseif msgcontains(msg, 'buy') then selfSay('I am not a merchant!') elseif msgcontains(msg, 'quest') then selfSay('Ha! You are only a novice!') elseif msgcontains(msg, 'mission') then selfSay('Ha! You are only a novice!') -- neck elseif talk_state == 1 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2198) >= 1 and getPlayerItemCount(cid,2161) >= 1 and getPlayerItemCount(cid,2170) >= 1 and getPlayerItemCount(cid,2171) >= 1 and getPlayerItemCount(cid,2172) >= 1 and getPlayerItemCount(cid,2201) >= 1 then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu um Elemental necklace.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2198,1) doPlayerTakeItem(cid,2161,1) doPlayerTakeItem(cid,2170,1) doPlayerTakeItem(cid,2171,1) doPlayerTakeItem(cid,2172,1) doPlayerTakeItem(cid,2201,1) doPlayerAddItem(cid,2197,1) talk_state = 0 else selfSay('You dont have this itens!') talk_state = 0 end end -- amulet elseif talk_state == 2 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2129) >= 1 and getPlayerItemCount(cid,2133) >= 1 and getPlayerItemCount(cid,2130) >= 1 and getPlayerItemCount(cid,2199) >= 1 and getPlayerItemCount(cid,2135) >= 1 and getPlayerItemCount(cid,2126) >= 1 and getPlayerItemCount(cid,2131) >= 1 then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu um Spirit Elemental amulet.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2129,1) doPlayerTakeItem(cid,2133,1) doPlayerTakeItem(cid,2130,1) doPlayerTakeItem(cid,2199,1) doPlayerTakeItem(cid,2135,1) doPlayerTakeItem(cid,2126,1) doPlayerTakeItem(cid,2131,1) doPlayerAddItem(cid,2173,1) talk_state = 0 else selfSay('You dont have this itens!') talk_state = 5 end end elseif talk_state == 3 then if msgcontains(msg, 'yes') then if getPlayerItemCount(cid,2218) >= 1 and getPlayerItemCount(cid,2142) >= 1 and getPlayerItemCount(cid,2132) >= 1 and getPlayerItemCount(cid,2136) >= 1 and getPlayerItemCount(cid,2138) >= 1 and getPlayerItemCount(cid,2200) >= 1 and getPlayerItemCount(cid,2196) >= 1 then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu um Elemental magic amulet.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2218,1) doPlayerTakeItem(cid,2142,1) doPlayerTakeItem(cid,2132,1) doPlayerTakeItem(cid,2136,1) doPlayerTakeItem(cid,2138,1) doPlayerTakeItem(cid,2200,1) doPlayerTakeItem(cid,2196,1) doPlayerAddItem(cid,2125,1) talk_state = 0 else selfSay('You dont have this itens!') talk_state = 5 end end -- energ elseif talk_state == 4 then if msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) >= 1 then if pay(cid,50000) then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu Energizou seu Elemental necklace.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2197,1) doPlayerAddItem(cid,13682,1) talk_state = 0 else selfSay('You dont have this money!') talk_state = 0 end elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2173) >= 1 then if pay(cid,100000) then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu Energizou seu Spirit Elemental amulet.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2173,1) doPlayerAddItem(cid,13683,1) talk_state = 0 else selfSay('You dont have this money!') talk_state = 0 end elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2125) >= 1 then if pay(cid,150000) then selfSay('Its all yours!') doPlayerSendTextMessage(cid,22,"Voce recebeu Energizou seu Elemental magic amulet.") doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,2125,1) doPlayerAddItem(cid,13684,1) talk_state = 0 else selfSay('You dont have this money!') talk_state = 0 end elseif msgcontains(msg, 'yes') and getPlayerItemCount(cid,2197) >= 0 and getPlayerItemCount(cid,2125) >= 0 and getPlayerItemCount(cid,2173) >= 0 then selfSay('You dont have this item!') talk_state = 0 end -- bless elseif talk_state == 5 then if msgcontains(msg, 'yes') then if bless then selfSay('You are already blessed my little mortal.') talk_state = 0 else if isPremium(cid) then if pay(cid,preco*1000) then selfSay('Receive this bless mortal, with the gods touch i bless you!') doPlayerSendTextMessage(cid,22,"Voce recebeu a benção de Isolda.") doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doSendMagicEffect(getPlayerPosition(cid),12) talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry but only can bless a mortal premmy.') talk_state = 0 end end end -- reset elseif talk_state == 6 then rubys = (getPlayerLevel(cid)* 4000 * (vezes*10)/1000000) if msgcontains(msg, 'yes') then if isPremium(cid) then if getPlayerLevel(cid) >= 400 then if getPlayerVocation(cid) >= 9 then if pay(cid,(getPlayerLevel(cid)*4000)*(vezes*10)) then if getPlayerVocation(cid) == 13 then -- deuses if getPlayerLevel(cid) >= 510 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1)) doPlayerAddMana(cid,(mana/15)*(vezes+1)) doPlayerMagicLevel(cid,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 14 then if getPlayerLevel(cid) >= 510 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-2184984130) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/15)*(vezes+1)) doPlayerAddMana(cid,(mana/15)*(vezes+1)) doPlayerMagicLevel(cid,20) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 510 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 15 then if getPlayerLevel(cid) >= 510 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1)) doPlayerAddMana(cid,(mana/10)*(vezes+1)) doPlayerMagicLevel(cid,5) doPlayerAddSkill(cid,4,25) doPlayerAddSkill(cid,5,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end end if getPlayerVocation(cid) == 16 then if getPlayerLevel(cid) >= 510 then if getPlayerItemCount(cid,13685) >= rubys then selfSay('Welcome new god!') doPlayerSendTextMessage(cid,22,"Você resetou seu personagem.") health = getCreatureMaxHealth(cid) mana = getCreatureMaxMana(cid) doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid, (health/10)*(vezes+1)) doCreatureAddHealth(cid,(health/10)*(vezes+1)) doCreatureChangeMaxMana(cid, (mana/10)*(vezes+1)) doPlayerAddMana(cid,(mana/10)*(vezes+1)) doPlayerAddSkill(cid,0,25) doPlayerAddSkill(cid,1,25) doPlayerAddSkill(cid,2,25) doPlayerAddSkill(cid,3,25) doPlayerAddSkill(cid,5,25) doSendMagicEffect(getPlayerPosition(cid),12) setPlayerStorageValue(cid,7777,vezes+1) doPlayerTakeItem(cid,13685,rubys) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") talk_state = 0 else selfSay('Sorry mortal, but you dont have this monney!') talk_state = 0 end else selfSay('Sorry, but only gods level 510 or above can do that!') talk_state = 0 end end if getPlayerStorageValue(cid,7777) <= 0 and getPlayerVocation(cid) >= 13 and getPlayerLevel(cid) >= 500 then setPlayerStorageValue(cid,7777,1) end if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 13 then -- semis if getPlayerItemCount(cid,6500) >= 1000 then selfSay('Oh! Now you are a god!') if getPlayerVocation(cid) >= 9 and getPlayerVocation(cid) < 11 then doPlayerMagicLevel(cid,10) end if getPlayerVocation(cid) == 11 then doPlayerMagicLevel(cid,2) doPlayerAddSkill(cid,4,10) doPlayerAddSkill(cid,5,10) end if getPlayerVocation(cid) == 12 then doPlayerAddSkill(cid,0,10) doPlayerAddSkill(cid,1,10) doPlayerAddSkill(cid,2,10) doPlayerAddSkill(cid,3,10) doPlayerAddSkill(cid,5,10) end doPlayerSendTextMessage(cid,22,"Você evoluiu seu espírito a Deus.") doPlayerAddExp(cid,-10000000000) doCreatureChangeMaxHealth(cid,185) doCreatureAddHealth(cid,185) doCreatureChangeMaxMana(cid,35) doPlayerAddMana(cid,35) doPlayerSetVocation(cid, getPlayerVocation(cid)+4) doSendMagicEffect(getPlayerPosition(cid),12) doPlayerTakeItem(cid,6500,100) talk_state = 0 else selfSay('Sorry, but you dont have the 100 demoniac essense!') talk_state = 0 end end else selfSay('Sorry, but only gods i can do that!') talk_state = 0 end else selfSay('Sorry, but only gods level 500 or above can do that!') talk_state = 0 end else selfSay('Sorry but only can reset a god premmy.') talk_state = 0 end end --end ------------------------------------------------ confirm no ------------------------------------------------ elseif msgcontains(msg, 'no') and (talk_state >= 1 and talk_state <= 34) then selfSay('Ok than.') talk_state = 0 end -- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself. return true end function teste(cid) end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  7. Vou te passar tudo, desde sistema de reset, até esse sistema de cidade. Vá em lib/050-funciton.lua e add isso no final function addReset(cid) resets = getResets(cid) setPlayerStorageValue(cid,36874,resets+1) return true end function getResets(cid) resets = getPlayerStorageValue(cid,36874) if resets < 0 then resets = 0 end return resets end Feito isso, vá em talkaction/script, e crie um arquivo chamado reset.lua e coloque isso dentro function onSay(cid, words, param) local newlevel = 2500 -- level após reset local newexp = 0 -- Exp apos resetar local pos = getPlayerPosition(cid) if getResets(cid) >= 170 then --Limite de reset doPlayerPopupFYI(cid, "voce ja atingiu o maximo de resets.") return TRUE end if getPlayerLevel(cid) < 60 then -- Level para poder resetar doPlayerPopupFYI(cid, "Precisa ser level 60 para usar esse comando.") else addReset(cid) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") end return TRUE end e adicione isso em talkaction.xml <talkaction words="!reset" access="1" event="script" value="reset.lua"/> Agora vamos a parte do sistema de cidade. Vá em movements/scripts e crie um arquivo chamado cidade.lua e adicione o codigo abaixo function onStepIn(cid, item, position, fromPosition) if isPlayer then if getResets(cid) >= 3 then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Bem vindo a cidade VIP, desfrute de tudo.") --Muda essa mensagem kk else dir = getPlayerLookDir(cid) pos = getCreaturePosition(cid) if dir == 0 then newpos = {x=pos.x, y=pos.y+1, z=pos.z} elseif dir == 2 then newpos = {x=pos.x, y=pos.y-1, z=pos.z} elseif dir == 1 then newpos = {x=pos.x-1, y=pos.y, z=pos.z} elseif dir == 3 then newpos = {x=pos.x+1, y=pos.y, z=pos.z} end doTeleportThing(cid, newpos, dir) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Somente jogadores com 3 Resets ou mais podem entrar nesse local") end end end Feito isso, vá em movements.xml e adicione <movevent type="StepIn" actionid="55212" event="script" value="cidade.lua"/> Assim que terminar, é só abrir o RME e colocar ACTIONID 55212 na area da cidade VIP. Testado e funcionando.
  8. Você colocou as libs? porque esse erro é que não encontrou a função addReset.
  9. Irei fazer aqui, jájá eu posto =D
  10. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Não entendo muito bem sobre spells, mas vou tentar passar o pouco que sei. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) --COMBAT_FIREDAMAGE É O "DANO" QUE O MONSTRO/PLAYER IRA RECEBER setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)--CONST_ME_FIREAREA É O EFEITO QUE O PLAYER IRÁ SOLTAR, TIPO AS BOLAS DE FOGO setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 7, 14) -- AQUI É A FORMULA POR MAGIC LEVEL, o 1°(5) é o minimo, o 2°(5) é maximo do minimo, o 7 é o minimo do maximo e o 14 é o maximo do maximo. exemplo: hit 1 = 50, hit 2 = 50, hit 3 = 70 e hit 4 = 140, pra entender o valor certo, terá que ir testando local area = createCombatArea(AREA_CROSS5X5) -- AQUI É A AREA DA MAGIA, OU SEJA AREA DE 5 POR 5 setCombatArea(combat, area) -- FUNÇÕES function onCastSpell(cid, var) -- FUNÇÕES return doCombat(cid, combat, var) -- RETORNO DA FUNÇÃO end
  11. Você já tem o sistema de reset? Posso te passar um que uso e criar o sistema para cidade. Caso contrário, preciso saber o sistema de reset seu.
  12. Vá em action/script e crie um arquivo chamado frags.lua e coloque o codigo dentro function onUse(cid, item, frompos, item2, topos) local pos = getPlayerPosition(cid) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")") db.executeQuery("UPDATE `players` SET `skulltime` = 0") doCreatureSetSkullType(cid, 0) doCreatureSay(cid, "Você removeu seus Frags/Skull com sucesso.", 19) doSendMagicEffect(getPlayerPosition(cid), 26) doRemoveItem(item.uid,1) return TRUE end e em action.xml, adicone a seguinte linha. <action itemid="8981" script="frags.lua" />
  13. Vá em lib/050-funciton.lua e add isso no final function addReset(cid) resets = getResets(cid) setPlayerStorageValue(cid,36874,resets+1) return true end function getResets(cid) resets = getPlayerStorageValue(cid,36874) if resets < 0 then resets = 0 end return resets end Feito isso, vá em talkaction/script, e crie um arquivo chamado reset.lua e coloque isso dentro function onSay(cid, words, param) local newlevel = 2500 -- level após reset local newexp = 0 -- Exp apos resetar local pos = getPlayerPosition(cid) if getResets(cid) >= 170 then --Limite de reset doPlayerPopupFYI(cid, "voce ja atingiu o maximo de resets.") return TRUE end if getPlayerLevel(cid) < 60 then -- Level para poder resetar doPlayerPopupFYI(cid, "Precisa ser level 60 para usar esse comando.") else addReset(cid) playerid = getPlayerGUID(cid) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level`="..newlevel..",`experience`="..newexp.." WHERE `players`.`id`= ".. playerid .."") end return TRUE end e adicione isso em talkaction.xml <talkaction words="!reset" access="1" event="script" value="reset.lua"/> Espero ter ajudado
  14. tem algum script de "drop" no server?
  15. Irei tentar resolver kk Pois só fiz arrumar os bugs e nem testei. Breve posto uma solução. OBS: ja tentaram copilar com o codeblock?
  16. Esse erro deve ser algo "incompativel" entre seu Ot e a rev. 0.4 - 3777
  17. Fico feliz em ter ajudado Breve postarei a versão do TFS 0.3.6 com War e Cast
  18. Exemplo: Loguei com meu ADMIN, digitei /cast on abrir um "mc" e APENAS apertei ENTER, selecionei a tela do cast(admin) no caso....
  19. Voce tem duas opções... 1° use um TFS 0.4 2° coloque o Unregister, porém você terá que ter o conhecimento minimo em programação, pois envolve muitos códigos. E que eu sabia não tem tutorial sobre isso
  20. UnregisterEvent existe, porém no TFS 0.4. Se você usa o TFS 0.3.6 ou inferior você pode adaptar(mas dá uma trabalheira que só) :X
  21. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Aqui está http://www.tibiaking.com/forum/topic/28906-tfs-04-with-cast-systemlinuxwindows/ Demorei um pouco para arrumar, pois estava envolvido com meu projeto kkk
  22. Olá, como percebi que muitos usuários estavam com problemas em copilar a versão do Jamilson Collins http://www.tibiaking.com/forum/topic/27617-cast-system-tfs-04-86/), Eu resolvi, editar a sourcer, colocando para ser compatível com linux e windows. Tinha alguns códigos mal "formulados" gerando os possíveis crashs. O que vem no conteúdo a seguir contem os seguintes items : Sourcers com o Cast System(Linux/Windows) Código MySQL para você por na sua database. Talkaction para o player poder executar o comando. Cast.php, que é a página do Cast System com comandos e outros (Compatível com o gesior e em português). Adicione enableCast = "true" (no seu config.lua) Estarei tirando dúvidas em relação as minhas modificações. Link Copilado 32Bits(Windows) http://www.mediafire.com/?166i4wg4q3te4uc Scan: https://www.virustotal.com/pt/file/7020fa7a169a390cf5fabaca8a8edbcbe4e4f119e99c7d9dd66c2741227dd293/analysis/1383447449/ OBS> no scan acusou um virus, se alguém duvida de algo, baixe a source e copile por si. Link Source: http://www.mediafire.com/?w19t81fgivm6j06 Scan: https://www.virustotal.com/pt/file/2f8b21c37316415e5175afaa12d73c43e4c5cfa8dba206cf5a144b2f909aefa7/analysis/1383448112/ Créditos: Summ, Jamilson Collins, Eu por ter modificado é claro =D Aproveitem, deu um pouco de trabalho para corrigir os problemas.
  23. poste APENAS a parte que configura a porta do xampp. Creio que você seguiu uma linha de "pensamento" errada ao configurar. no xammp, apenas muda as portas e não coloca IPIbaiak-24horas.com)
  24. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Irei tentar fazer isso, não tenho certeza se vou conseguir.
  25. joadson postou uma resposta no tópico em Suporte Tibia OTServer
    Irei colocar para rodar no Linux e breve postarei aqui o link ou o arquivo kk

Informação Importante

Confirmação de Termo