Ir para conteúdo

Posts Recomendados

Olá Vamos aprender como coloca o comando !reset no seu ot sabe qnd um kr e lvl 800 ou + e fala !reset volta pro lvl 8 so diminui o lvl e pra fica + forte sabe? entao vamos la

 

va em talkactions/scripts Cole isto

 

 

function onSay(cid, words, param)

resets = getPlayerStorageValue(cid,799)
if resets == -1 then
setPlayerStorageValue(cid,799,0)
end
if getPlayerLevel(cid) > 799 then
setPlayerStorageValue(cid,799,resets+1)
local pid = getPlayerGUID(cid)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE `id` = "..pid)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You need the level 800 or more")
end
end

 

 

Depois va em talkactions/talkactions e cole isto

 

 

<talkaction words="!reset" script="resetar.lua"/>

 

 

 

feche salve abra seu ot e fale !reset

 

 

 

 

 

 

 

Xtibia xD

 

post-226502-1251420114.gif

Link para o comentário
https://xtibia.com/forum/topic/119286-fechado-como-coloca-reset-no-seu-ot/
Compartilhar em outros sites

Amigo já existe um Tópico parecido

 

http://www.xtibia.com/forum/talkaction-Tal...et-t115411.html

 

Pesquise melhor antes de criar um tópico

Editado por RulezKnight
Link para o comentário
https://xtibia.com/forum/topic/119286-fechado-como-coloca-reset-no-seu-ot/#findComment-784756
Compartilhar em outros sites

  • 3 weeks later...
Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...