SK

Life 4 Mana

Por Sky Hunter, 17 de fev. de 2007 em Actions e Talkactions

script
4
1.7k
17 de fevereiro de 2007 às 22:04

Quem nunca pensou em gastar life pra recuperar mana? Bom, eu pensei em fazer, sei fazer, e fiz, tá aí:

 

--------------

 

\data\talkactions\scripts\life4mana.lua

 

---Life4mana-by Sky Hunter---
function onSay(cid, words, param)

playerpos = getPlayerPosition(cid)

if math.max(math.abs(playerpos.x-23), math.abs(playerpos.y-30)) < 99999 then
PlayerVoc = getPlayerVocation(cid)
if PlayerVoc == 1 then
doPlayerAddHealth(cid,-30)
doPlayerAddMana(cid,30)
   else
doPlayerSendCancel(cid,"Only Sorcerers may use this ancient spell.")
       return 0
   end
 end
end

 

\data\talkactions\talkactions.xml

<talkaction words="leben fur mana" script="life4mana.lua" />

suborasS
18 de fevereiro de 2007 às 06:01

HEuhuasuihauihuie...

Boa cara, Ficou Massa :)

Bom msm.. Vlws, :p

 

//Suboras

NekoN
20 de fevereiro de 2007 às 17:41

Meio esquisito :blink: mas bem legal continue assim :bigsmile:

1 mês depois...
HighH
10 de março de 2007 às 17:57

Poderia se adicionar um math.random

pro player poder sair perdendo e ganhando algumas vezes =)