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

Help with Boomerang Script [ACTION]

Exmerus

New Member
Joined
Jan 14, 2008
Messages
306
Reaction score
3
This is a Boomerang Script ( WEAPON )
I want players unable to Kill Low levels and get pz locked when attacking other players
Is this possible?

-Thanks in advance


This goes in /actions/boomerang.lua

PHP:
--100 PERCENT CREDITS TO PENIS PUMPE-- 
        --1337.hopto.org-- 
  --Please keep credits if used-- 

function target (stuff) 
local cid = stuff.cid     
local thing = getThingfromPos(stuff.toPosition) 
     
    if (stuff.counter == 2) then 
        if getTileHouseInfo(stuff.toPosition) > 0 then 

        elseif isCreature(thing.uid) == FALSE then 
                doTeleportThing(thing.uid, getCreaturePosition(stuff.cid)) 
        end 
        return TRUE 
    end     
        doSendDistanceShoot(stuff.toPosition, getCreaturePosition(stuff.cid), CONST_ANI_WHIRLWINDAXE) 
        doAreaCombatHealth(0, COMBAT_HOLYDAMAGE, stuff.toPosition, 0, -200, -350, CONST_ME_HOLYDAMAGE) 
        stuff.counter = stuff.counter + 1 
        addEvent(target, 200, stuff) 
end 

function onUse(cid, item, fromPosition, itemEx, toPosition) 
    if getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(toPosition) == TRUE then 
        warnPlayer(cid, "You cannot use this weapon in a protection zone.") 
    else 
        doSendDistanceShoot(getCreaturePosition(cid), toPosition, CONST_ANI_WHIRLWINDAXE) 
        local stuff = {cid = cid, toPosition = toPosition, counter = 1}         
        addEvent(target, 300, stuff) 
    end 
    return TRUE 
end
 
Last edited:
Back
Top