• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

!frags problem tfs 04 3777

jareczekjsp

Member
Joined
Jan 30, 2023
Messages
188
Reaction score
9
GitHub
Jarek123
Hello guy I use tfs 0.4 tibia 8.6
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:
Back
Top