Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.2 kB
2
Indexable
Never
hola, me gustaría agregar al.siguiente script una funcion que al.activarse todo el.rsto sale un mensaje en amarillo que ponga Exp x2! lo que dure el movement.

function NormalExp(cid)
    doPlayerSetExperienceRate(cid, 1)
    doPlayerSay(cid, "NORMAL EXP..", TALKTYPE_ORANGE_1)
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end

function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) then
            if getConfigValue("experienceStages") == "yes" then

 doPlayerSendTextMessage(cid,22,"Welcome " .. getCreatureName(cid) .. " you will now receive the experience x2 event, come back when logout or you die to activate again.") 
                    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
                    doPlayerSetExperienceRate(cid, getExperienceStage(getPlayerLevel(cid))*0.08)
            else
 doPlayerSendTextMessage(cid,22,"Welcome " .. getCreatureName(cid) .. " you will now receive the experience x2 event, come back when logout or you die to activate again.") 
                    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)
                    doPlayerSetExperienceRate(cid, getConfigValue("rateExperience")*0.08)
            end
    end
return 1
end