Ir para conteúdo

Posts Recomendados

Isso Pegue aki o seu

 

eu vi o dele e me inspirei no resto :D

 

Crie ums arquivinhos .lua no talk actions!! talk!!! Cade code é uma action nao coloque tudo junto!!

 

--frerety ML--
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then
ml = getPlayerMagLevel(player)
doPlayerSendCancel(cid,param .. "'s ML: " .. ml)
else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---mustorze axe---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then

a = getPlayerSkill(player,3)


doPlayerSendCancel(cid,param .. "'s axe: " .. a)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---mustorze Distance---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then

d = getPlayerSkill(player,4)

doPlayerSendCancel(cid,param .. "'s distance: " .. d)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---mustorze first---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then
ml = getPlayerSkill(player,0)

doPlayerSendCancel(cid,param .. "'s first: " .. ml)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---mustorze fishing---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then

f = getPlayerSkill(player,6)

doPlayerSendCancel(cid,param .. "'s fishing: " .. f)
else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---mustorze level---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then
lv = getPlayerLevel(player)

doPlayerSendCancel(cid,param .. "'s level: " .. lv)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---Mustorze shield---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then

s = getPlayerSkill(player,5)

doPlayerSendCancel(cid,param .. "'s shield: " .. s)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

---Mustorze sword---
function onSay(cid, words, param)

player = getPlayerByName(param)

if player > 0 then

s = getPlayerSkill(player,2)

doPlayerSendCancel(cid,param .. "'s sword: " .. s)

else
doPlayerSendCancel(cid,"Fale Um nome online e valido.")
end

return 1
end

 

 

Depois em talkactions.xml adicione :

<talkaction words="leveldo" script="first.lua" />
<talkaction words="clubdo" script="club.lua" />
<talkaction words="axedo" script="axe.lua" />
<talkaction words="distancedo" script="distance.lua" />
<talkaction words="leveldo" script="level.lua" />
<talkaction words="sworddo" script="sword.lua" />
<talkaction words="shielddo" script="shield.lua" />
<talkaction words="getmldo" script="ml.lua" />

 

Ex: leveldo "mustorze

clubdo "mustorze

 

Entenderao??

 

Bye espero ter ajudado mustorze!

Link para o comentário
https://xtibia.com/forum/topic/51295-ums-talk-actions-by-me-d/
Compartilhar em outros sites

×
×
  • Criar Novo...