ED

[Duvida]

Por edu014, 02 de mar. de 2010 em Archived

script
7
925
edu014E
02 de março de 2010 às 18:27

Olha eu denovo =D

 

Galera e o siguinte vcs nao tem um scripter de magia pra mim nao?

 

 

bom como eu faso para tirar red skull mais rapido?

02 de março de 2010 às 18:43

Para tirar as skulls mais rápidas existe um comando para isso:

 

Vá em data/talkactions e abra o talkactions.xml e adicione essa tag:

<talkaction words="!removepk" script="skullclean.lua"/>

 

Agora entre na pasta scripts e crie um arquivo .lua e renomeie para skullclean, dentro dele adicione isso:

function onSay(cid, words, param, channel)

 

if (getCreatureSkullType(cid) == SKULL_BLACK) then

doPlayerRemoveMoney(cid, 200000)

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "You soul are clean.")

else

doPlayerSendTextMessage(cid, 22, "You need 200.000 gold pieces to remove the black skull")

end

 

if (getCreatureSkullType(cid) == SKULL_RED) then

doPlayerRemoveMoney(cid, 100000)

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "You soul are clean.")

else

doPlayerSendTextMessage(cid, 22, "You need 100.000 gold pieces to remove the red skull")

end

 

if (getCreatureSkullType(cid) == SKULL_WHITE) then

doPlayerRemoveMoney(cid, 10000)

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "You soul are clean.")

else

doPlayerSendTextMessage(cid, 22, "You need 10.000 gold pieces to remove the white skull")

end

 

if (getCreatureSkullType(cid) == SKULL_NONE) then

doPlayerSendTextMessage(cid, 22, "You soul are clean like water!")

end

 

return TRUE

end

 

E vc nao falou no topico qual magia vc qer. Poste qe estarei vendo se tem como fazer.

 

Espero ter ajudado, Att. Snowz.

pwn.gif

Editado Março 2 por luisfe23

edu014E
02 de março de 2010 às 18:50

era glacial rock an roll as outras nao me lembro

 

agora como edito comandos do god???

Editado Março 2 por KillerDeath

Henrique MouraH
02 de março de 2010 às 19:04

Snowz, além de ter retirado os créditos do meu script, este script está errado.

Este funciona:

 

 

--- skull remover by kakilo - quinto script

 

function onSay(cid, words, param, channel)

 

if (getCreatureSkullType(cid) == SKULL_BLACK) then

if doPlayerRemoveMoney(cid, 200000) then

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")

else

doPlayerSendTextMessage(cid, 22, "You need 200.000 gold pieces to remove the black skull")

end

end

 

if (getCreatureSkullType(cid) == SKULL_RED) then

if doPlayerRemoveMoney(cid, 100000) then

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")

else

doPlayerSendTextMessage(cid, 22, "You need 100.000 gold pieces to remove the red skull")

end

end

 

if (getCreatureSkullType(cid) == SKULL_WHITE) then

if doPlayerRemoveMoney(cid, 10000) then

doCreatureSetSkullType(cid, SKULL_NONE)

doPlayerSendTextMessage(cid, 22, "Your soul was been cleaned.")

else

doPlayerSendTextMessage(cid, 22, "You need 10.000 gold pieces to remove the white skull")

end

end

 

if (getCreatureSkullType(cid) == SKULL_NONE) then

doPlayerSendTextMessage(cid, 22, "Your soul clean like water!")

end

 

return TRUE

end

 

 

 

Abraços.

03 de março de 2010 às 00:59

o.O nem sabia qe o script era seu, no ot qe eu baxei ele veio assim... E aqe funciona!

Malz ae Henrique..

Abraços.

Editado Março 3 por luisfe23

2 semanas depois...
manogokoM
16 de março de 2010 às 21:08

Para nao criar um topico atoa ..

 

Vcs poderiam me responder como fazer esse comando somente para premiuns players ?

 

Agradeço xD !

GodBzG
17 de março de 2010 às 03:59

Não tem como por ele como comando pra GODs e GMs? e seria dahora por ele tirando fraggs tb...

Editado Março 17 por GodBz