BU

Skill

Por Bubbleman23, 10 de abr. de 2011 em Archived

script
2
921
Bubbleman23B
10 de abril de 2011 às 10:37

O que eu tenho de botar no script para que quando ele for usado subir o ml??? podem ajudar ae pessoal xD dou rep

14 de abril de 2011 às 08:37

Esse daqui e tipo uma bless que quando o player usa ele ganha ml...

Vai la em \data\talkactions\scripts eh cria uma aquivo chamado bless.lua e adiciona isso dentro dele

function onSay(cid, words, param)

if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then

doPlayerSendCancel(cid,'You have already got one or more blessings!')

else

if doPlayerRemoveMoney(cid, 100) == TRUE then

doPlayerAddBlessing(cid, 1)

doPlayerAddBlessing(cid, 2)

doPlayerAddBlessing(cid, 3)

doPlayerAddBlessing(cid, 4)

doPlayerAddBlessing(cid, 5)

doSendMagicEffect(getPlayerPosition(cid), 28)

doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the god Lycan!')

else

doPlayerSendCancel(cid, "You need 100 to get blessed!")

end

end

return TRUE

end

 

Depois vai la em talkaction.xml eh adiciona essa linha aqui

<talkaction words="!bless" script="bless.lua"/>

 

Para o player usar o bless basta ele dizer !bless VLWS