Prince Mego
New Member
- Joined
- Feb 11, 2016
- Messages
- 20
- Reaction score
- 1
Hello. ^_^
i have a problem with my PLAYER LOSS EXPERIENCE
i use tfs 0.4 version 8.60
when the players die from monster or pvp lose much exp 3 or 4 level
and i use this code in my login.lua
but when i try to edit
player back to level 1
and my player table in php `loss_EXPERIENCE` = '100'
and my bless.lua talkaction is
and i need when the player die lose Very few of experience max 1 level
and i can compiler just i need how to edit it
sorry for my english and thank's
i have a problem with my PLAYER LOSS EXPERIENCE
i use tfs 0.4 version 8.60
when the players die from monster or pvp lose much exp 3 or 4 level
and i use this code in my login.lua
Code:
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
but when i try to edit
Code:
PLAYERLOSS_EXPERIENCE, loss * 10
and my player table in php `loss_EXPERIENCE` = '100'
and my bless.lua talkaction is
Code:
-- [( Script edited by: DoidinMapper )] --
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), 28)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE, 'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 5cc to get blessed!")
end
end
return TRUE
end
and i need when the player die lose Very few of experience max 1 level
and i can compiler just i need how to edit it
sorry for my english and thank's