[Distro: 0.3.6 Printers Release] [Type: CreatureEvent] [Error: Works on Type PVP but with errors, and not at all on PVP-Enforced]
When I use this script with World Type PvP, it works but when players attack eachother it sets them with a white skull. From my understanding I am supposed to use PVP-Enforced for the script, but then the skull system is completely disabled it seems because the script no longer works at all and no skulls come up when attacking.
Example:
Example 2:
Is there anyway to disable white skulls when using pvp as a world type, because it seems to work flawlessly on that other than the fact it brings up a white skull when players attack each other and defeats the purpose of the skull system.
I would greatly appreciate any help, as this is a key function to my test server and it is not working!
Regards,
Extrodus
When I use this script with World Type PvP, it works but when players attack eachother it sets them with a white skull. From my understanding I am supposed to use PVP-Enforced for the script, but then the skull system is completely disabled it seems because the script no longer works at all and no skulls come up when attacking.
Example:
Code:
function onLogin(cid)
local frags = getPlayerPoints(cid)
if frags >= 10 and frags < 30 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif frags >= 30 and frags < 80 then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif frags >= 80 and frags < 150 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif frags >= 150 and frags < 300 then
doCreatureSetSkullType(cid, SKULL_RED)
elseif frags > 300 then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
return true
end
Example 2:
Code:
function onKill(cid, target, flags, damage)
if isPlayer(target) then
local frags = getPlayerPoints(cid)
if frags >= 10 and frags < 30 then
doCreatureSetSkullType(cid, SKULL_YELLOW)
elseif frags >= 30 and frags < 80 then
doCreatureSetSkullType(cid, SKULL_GREEN)
elseif frags >= 80 and frags < 150 then
doCreatureSetSkullType(cid, SKULL_WHITE)
elseif frags >= 150 and frags < 300 then
doCreatureSetSkullType(cid, SKULL_RED)
elseif frags > 300 then
doCreatureSetSkullType(cid, SKULL_BLACK)
end
end
return true
end
Is there anyway to disable white skulls when using pvp as a world type, because it seems to work flawlessly on that other than the fact it brings up a white skull when players attack each other and defeats the purpose of the skull system.
I would greatly appreciate any help, as this is a key function to my test server and it is not working!
Regards,
Extrodus
Last edited: