This mistake comes passing from previous versions, now I use 0.3.6 but in 0.3.5 also it was giving myself the same error, which happens is that the bless work "OCCASIONALLY" Let's say that when they want. A player on having be mounted bless can be that the bless serve and simultaneously not. Not because this owes. There are times that a player who has bless can lose the bp and something of the equipment but not to lose many % of level Or To lose many levels (more or less 2 or 3 being a level 350) and the equipment does not lose, Then to which this owes?
Someone can to help me?
My Script to buy bless is... (action)
My creaturescripts here >.<
My config.lua here...
HELP PLEASE!
Someone can to help me?
My Script to buy bless is... (action)
Code:
local cost = 20000
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerPremiumDays(cid) == 0 then
doPlayerSendCancel(cid, "You need premium to do this.")
return 1
end
for i = 1, 5 do
if(getPlayerBlessing(cid, i)) then
doPlayerSendCancel(cid, "You already have all of the blessings.")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
elseif(getPlayerMoney(cid) < cost) then
doPlayerSendCancel(cid, "You do not have enough money.")
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
else
doPlayerAddBlessing(cid, i)
doPlayerRemoveMoney(cid, cost)
doSendMagicEffect(getThingPos(cid), CONST_ME_FIREWORK_BLUE)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You received all of the blessings!")
end
end
if item.itemid == 1945 then
doTransformItem(item.uid, item.itemid )
else
doTransformItem(item.uid, item.itemid )
end
return true
end
My creaturescripts here >.<
Code:
local config = {
loginMessage = getConfigValue('loginMessage')
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "MageBomb")
registerCreatureEvent(cid, "Protect")
return true
end
My config.lua here...
Code:
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 8
HELP PLEASE!
Last edited: