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

Request two script

Nefs

Nefs Staff
Joined
Jul 15, 2009
Messages
521
Reaction score
7
Location
Barcelona (Spain)
i will request the working bless npc for 0.3.4, because i have a script when u die you down to lv 1...

and another script for protect wihtout power abussers,for ex: a lv 200 cant attack lv 170-...

30 lv difference
 
Level Protection

data/creaturescripts/scripts/script.lua
Lua:
function onAttack(cid, target)
    if(getPlayerLevel(cid) - getPlayerLevel(target)) >= 30 then
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may not attack this player.")
    end
    return TRUE
end

data/creaturescripts/scripts/login.lua
PHP:
registerCreatureEvent(cid, "protectPlayer")

data/creaturescripts/creaturescripts.xml
PHP:
<event type="attack" name="protectPlayer" script="script.lua"/>
 
Back
Top