• 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 [Yalahar Quest] Players are blocking the resp with fire fields!!!

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hello, its me again! ;c
The players on my server are making yalahar quest using a bug...
they throw fire fields on the ground so the monsters cant respaw, till the teleport gets openned and they finish the quest.
What can I do now?
Ty!
 
Hmm.. Get a script that removes fields after say 3 seconds? Or that disallows those fields being placed fullstop on area x:y:z:. Ask a scripter, they would do it as it is simple i guess
 
Lua:
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)


function onCastSpell(cid, var)
	local from, to = {x=, y=, z=}, {x=, y=, z=}
	if not(isInRange(getCreaturePosition(cid), from, to)) then
		return doCombat(cid, combat, var)
	else
		doPlayerSendCancel(cid, "You cannot use this spell in this area.")
		doSendMagicEffect(getCreaturePosition(cid), 2)
	end
end
 
Lua:
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492)


function onCastSpell(cid, var)
	local from, to = {x=, y=, z=}, {x=, y=, z=}
	if not(isInRange(getCreaturePosition(cid), from, to)) then
		return doCombat(cid, combat, var)
	else
		doPlayerSendCancel(cid, "You cannot use this spell in this area.")
		doSendMagicEffect(getCreaturePosition(cid), 2)
	end
end

Thank you so much!

- - - Updated - - -

Is there a way to add more prohibited places to this script?
I need to block the use of this rune on 3 places :S

- - - Updated - - -

BUMP
 
Back
Top