jareczekjsp
Member
Hello guy I use tfs 0.4 tibia 8.6
And
When Player have Redskull
I remove Comand !remove skull
Script
Dont have red skull but When I kill 1 Player Redskull back
and when I use Command !frags
Not working and in console have error like that
Can anyone help me please?
Solved
And
When Player have Redskull
I remove Comand !remove skull
Script
Lua:
--- skull remover by kakilo - quinto script
function onSay(cid, words, param, channel)
if (getCreatureSkullType(cid) == SKULL_BLACK) then
if doPlayerRemoveMoney(cid, 100000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "You don't have now RedSkull.")
else
doPlayerSendTextMessage(cid, 22, "Price 100kk for remove Redskull")
end
end
if (getCreatureSkullType(cid) == SKULL_RED) then
if doPlayerRemoveMoney(cid, 5000000) then
doCreatureSetSkullType(cid, SKULL_NONE)
doPlayerSendTextMessage(cid, 22, "You don't have now RedSkull.")
else
doPlayerSendTextMessage(cid, 22, "Price 100kk for remove Redskull")
end
end
if (getCreatureSkullType(cid) == SKULL_NONE) then
doPlayerSendTextMessage(cid, 22, "You don't have now RedSkull!")
end
return TRUE
end
Dont have red skull but When I kill 1 Player Redskull back
and when I use Command !frags
Not working and in console have error like that
[7:42:44] [Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message.
Can anyone help me please?
Post automatically merged:
Solved
Last edited: