magdy capone
Tibia-Egypt.com
- Joined
- Jan 12, 2014
- Messages
- 34
- Reaction score
- 0
My Friend Give Me 2 Script But Have Problem
my tfs : 0.4
script 1 :-
{lua}
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) = return true
end
getPlayerSkullType(cid) >= 4
thendoCreatureSetDropLoot(cid, false)
return true
end{/lua}
script 2 :-
{lua}
local level = 1200 -- level
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) = return true
end
if getPlayerLevel(cid) <= level then
doPlayerSetLossPercent(cid, experience, 0)
return true
end{/lua}
info script 1 : i need player can't lose any loot when die if he have red skull and black skull and if he dont have any skull can't lose item's but i can't need player do !bless and !aol to can't lose items's my mined i can't need player lose any item's without bless and aol
info script 2 : i need player can't lose any level without bless and aol only when get level 1200 or higher lose 1 level
this is my error in server :-
sorry for my english but please help me
my tfs : 0.4
script 1 :-
{lua}
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) = return true
end
getPlayerSkullType(cid) >= 4
thendoCreatureSetDropLoot(cid, false)
return true
end{/lua}
script 2 :-
{lua}
local level = 1200 -- level
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if isPlayer(cid) = return true
end
if getPlayerLevel(cid) <= level then
doPlayerSetLossPercent(cid, experience, 0)
return true
end{/lua}
info script 1 : i need player can't lose any loot when die if he have red skull and black skull and if he dont have any skull can't lose item's but i can't need player do !bless and !aol to can't lose items's my mined i can't need player lose any item's without bless and aol
info script 2 : i need player can't lose any level without bless and aol only when get level 1200 or higher lose 1 level
this is my error in server :-
sorry for my english but please help me