TalkAction Now Script removeskull

abofoulla

Member
Joined
Apr 24, 2017
Messages
34
Best answers
1
Reaction score
0
hello
It worked 100%

First create something like this

1k to remove your black and red skull.

in talkactions/scripts/skull.lua

Lua:
--- skull remover by abofoulla - script

function onSay(cid, words, param, channel)

if (getCreatureSkullType(cid) == SKULL_BLACK) then
if doPlayerRemoveMoney(cid, 1000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Black Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "You need 1k to remove your black skull")
end
end

if (getCreatureSkullType(cid) == SKULL_RED) then
if doPlayerRemoveMoney(cid, 1000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.")
else
doPlayerSendTextMessage(cid, 22, "You need 1k to remove your red skull")
end
end

if (getCreatureSkullType(cid) == SKULL_NONE) then
doPlayerSendTextMessage(cid, 22, "Your Skull was successfully withdrawn!")
end
return TRUE
end
in talkactions/talkactions.xml

Code:
 <talkaction words="!removeskull" event="script" value="skull.lua"/>
enjoy .
 
Last edited:
Top