• 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!

Need script

beliar34

Member
Joined
Feb 28, 2012
Messages
307
Solutions
7
Reaction score
11
i need script who make this thing : When vocation x DIE player maxhealth decrase by x value ;)

i have problem's with transform system ;/

Code:
ichigo = {lookType=2}
rukia = {lookType=70}
function onDeath(cid)
-- ICHIGO--
if (getPlayerVocation(cid) == 2) then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) - 500)
        setCreatureMaxMana(cid, getPlayerMaxMana(cid) - 500)

        elseif (getPlayerVocation(cid) == 1)
        or (getPlayerVocation(cid) == 7)
        or (getPlayerVocation(cid) == 12)
        or (getPlayerVocation(cid) == 18)
        or (getPlayerVocation(cid) == 24)
        or (getPlayerVocation(cid) == 28)
        or (getPlayerVocation(cid) == 34)
        or (getPlayerVocation(cid) == 40)
        or (getPlayerVocation(cid) == 46)
        or (getPlayerVocation(cid) == 52)
        or (getPlayerVocation(cid) == 60)
        or (getPlayerVocation(cid) == 67)
        or (getPlayerVocation(cid) == 82)
        or (getPlayerVocation(cid) == 88)
        or (getPlayerVocation(cid) == 95)
        or (getPlayerVocation(cid) == 102)
        or (getPlayerVocation(cid) == 108) then  
    return true
    end
end

This scripts isn't work
 
Back
Top