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

Lua Magic wall PZ

KnightmareZ

New Member
Joined
Feb 3, 2008
Messages
607
Reaction score
4
Location
Sweden/Ljungby
Why do I get pz and cant enter PZ?

Here is my script:
Code:
<rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" blocktype="all" event="script" value="support/magic wall rune.lua"/>

and support/magic wall rune.lua

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

ty rep++
 
You need to change it in sources, you can add:
Code:
if(itemId == ITEM_MAGICWALL || itemId == ITEM_MAGICWALL_SAFE)
                                pzLock = false;
                if(itemId == ITEM_WILDGROWTH || itemId == ITEM_WILDGROWTH_SAFE)
                                pzLock = false;
in combat.cpp under:
Code:
else if(params.isAggressive && !Item::items[itemId].blockPathFind)
				pzLock = true;
 
Back
Top