Maenilse 86 Postado Janeiro 20, 2013 Share Postado Janeiro 20, 2013 Bom Galera Nao Sei Se è Area Correto Ou Nao, Se Nao For Por Favor Movam. Queria 1 Script Que Qnd Eu Falar, /addhealth player, 500 ou /addmana player, 500. Adciona 500 Health Ou Mana No Player, Nao Sei Se è Possivel, Aguardo Respostas... REP+ Se Conseguirem Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/ Compartilhar em outros sites More sharing options...
0 Slicer 1070 Postado Janeiro 20, 2013 Share Postado Janeiro 20, 2013 healar 500 mp/hp ou aumentar a maxHealth/maxMana do player? Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1444206 Compartilhar em outros sites More sharing options...
0 Maenilse 86 Postado Janeiro 20, 2013 Autor Share Postado Janeiro 20, 2013 @UP, Eu Quero Que Almente a Maxhealth e Maxmana Do Player, Com a Quantidade Que Eu Quero. Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1444231 Compartilhar em outros sites More sharing options...
0 Slicer 1070 Postado Janeiro 20, 2013 Share Postado Janeiro 20, 2013 (editado) testa ae.. function onSay(cid, words, param) if param == "" then return doPlayerSendTextMessage(cid, 27, "Params missing... "..words.." [player name], [how many])") end local t = string.explode(param, ",") if not t[1] or not t[2] or not tonumber(t[2]) then return doPlayerSendTextMessage(cid, 27, "Params missing... "..words.." [player name], [how many])") end local player = getPlayerByName(t[1]) local qnt = tonumber(t[2]) if not isCreature(player) then return doPlayerSendTextMessage(cid, 27, "Player not found!") elseif qnt < 1 then return doPlayerSendTextMessage(cid, 27, "You need to say a number bigger then 0!") end if string.find(words, "health") then setCreatureMaxHealth(cid, qnt) doCreatureAddHealth(cid, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max health in the player ".. t[1]) else setCreatureMaxMana(cid, qnt) doPlayerAddMana(cid, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max mana in the player ".. t[1]) end return true end tag: <talkaction words="/addhealth" access="5" event="script" value="NOME DO SCRIPT.lua"/> <talkaction words="/addmana" access="5" event="script" value="NOME DO SCRIPT.lua"/> ali em 'NOME DO SCRIPT' tu coloca o nome q tu der pro script .lua... lembrando q eh um script soh pros 2 comandos... Editado Janeiro 20, 2013 por Slicer Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1444269 Compartilhar em outros sites More sharing options...
0 Maenilse 86 Postado Janeiro 20, 2013 Autor Share Postado Janeiro 20, 2013 Irei Testar Volto Com Respostas @edit Ae Lek Funfo Sertinho Mas Tipo, Quando Eu Falo /addhealth Rodrigo, 403990, Ele Adciona Health No Meu Char Nao No Player. Ja Tentei Botar pid, mas nao funfa tbm ... Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1444595 Compartilhar em outros sites More sharing options...
0 Slicer 1070 Postado Janeiro 20, 2013 Share Postado Janeiro 20, 2013 erro bobo.. troca isso.. if string.find(words, "health") then setCreatureMaxHealth(cid, qnt) doCreatureAddHealth(cid, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max health in the player ".. t[1]) else setCreatureMaxMana(cid, qnt) doPlayerAddMana(cid, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max mana in the player ".. t[1]) end por isso.. if string.find(words, "health") then setCreatureMaxHealth(player, qnt) doCreatureAddHealth(player, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max health in the player ".. t[1]) else setCreatureMaxMana(player, qnt) doPlayerAddMana(player, qnt) doPlayerSendTextMessage(cid, 27, "Added ".. qnt .." of max mana in the player ".. t[1]) end Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1444640 Compartilhar em outros sites More sharing options...
0 Maenilse 86 Postado Janeiro 21, 2013 Autor Share Postado Janeiro 21, 2013 @UP Rep+ Pra Voce Lek, Gostei Mt Do Script. @Topic Podem Fexar. Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1445117 Compartilhar em outros sites More sharing options...
0 Slicer 1070 Postado Janeiro 21, 2013 Share Postado Janeiro 21, 2013 sanado, movido Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1445148 Compartilhar em outros sites More sharing options...
0 Maenilse 86 Postado Janeiro 21, 2013 Autor Share Postado Janeiro 21, 2013 Sanado, Podem Excluir ou Fexar o Topico Vlws. Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1445223 Compartilhar em outros sites More sharing options...
0 Lostzera 7 Postado Janeiro 22, 2013 Share Postado Janeiro 22, 2013 ja tinha comando que fazia isso kk Link para o comentário https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/#findComment-1446763 Compartilhar em outros sites More sharing options...
Pergunta
Maenilse 86
Bom Galera Nao Sei Se è Area Correto Ou Nao, Se Nao For Por Favor Movam.
Queria 1 Script Que Qnd Eu Falar, /addhealth player, 500 ou /addmana player, 500.
Adciona 500 Health Ou Mana No Player, Nao Sei Se è Possivel, Aguardo Respostas...
REP+ Se Conseguirem
Link para o comentário
https://xtibia.com/forum/topic/204957-preciso-de-1-script-que-adciona-health-e-mana-no-player/Compartilhar em outros sites
9 respostass a esta questão
Posts Recomendados