• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Creaturescripts - rookgard system ?

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Anyone got Rook system ?
I mean:
- If you rook-down your character to 7 level and log after death, you'll teleported to temple on rookgard with 1 level and 0 exp
- If you got 7 level your equipped items has been deleted from EQ.

? :blink:
 
RookSystem

HTML:
function onLogin(cid)
    RookTown_id = 5 
    if(getPlayerLevel(cid) < 8) then
        doPlayerSetVocation(cid, 0)
        setCreatureMaxHealth(cid, 150)
        setCreatureMaxMana(cid, 0)
        doPlayerSetMaxCapacity(cid, 440)
        doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
        doCreatureAddMana(cid, getCreatureMaxMana(cid))
        doPlayerSetTown(cid, RookTown_id)
        doPlayerAddMagLevel(cid, -getPlayerMagLevel(cid))
        doPlayerAddSkillTry(cid, 0, -getPlayerSkillLevel(cid, 0))
        doPlayerAddSkillTry(cid, 1, -getPlayerSkillLevel(cid, 1))
        doPlayerAddSkillTry(cid, 2, -getPlayerSkillLevel(cid, 2))
        doPlayerAddSkillTry(cid, 3, -getPlayerSkillLevel(cid, 3))
        doPlayerAddSkillTry(cid, 4, -getPlayerSkillLevel(cid, 4))
        doPlayerAddSkillTry(cid, 5, -getPlayerSkillLevel(cid, 5))
        doPlayerAddSkillTry(cid, 6, -getPlayerSkillLevel(cid, 6))
        
        if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then 
            TypeChange = 136 
        else 
            TypeChange = 128 
        end
        doCreatureChangeOutfit(cid, {lookType=TypeChange, lookHead=78, lookBody=69, lookLegs=58, lookFeet=76, lookAddons = 0})
        doTeleportThing(cid, getTownTemplePosition(RookTown_id))
        doSendMagicEffect(getCreaturePosition(cid),10)
        doPlayerSave(cid, true)
    end
    registerCreatureEvent(cid, "RookSystem")
    return true
end

HTML:
<event type="login" name="RookSystem" event="script" value="RookSystem.lua"/>

Not test...<_<
 
Back
Top