Skill

Bubbleman23
em Lixeira Pública

Bubbleman23

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 08/11/10Posts: 4

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

mdgabrielzim

avatar
Visconde
Visconde

INFOS

Grupo: ViscondeRegistrado: 01/11/10Posts: 362

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

WTF??