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

[StepIn] Requesting creatureevent

Loney

#!
Senator
Premium User
Joined
Jul 23, 2012
Messages
2,044
Solutions
31
Reaction score
243
Location
México
Hi, I was wondering if there's any script over there that if you kill a monster, then you can walk through a tile, understood?
Thanks a lot.
 
Lua:
local creature = 'CREATURE_NAME'
local storage = EMPTY_STORAGE
function onKill(cid, target, damage, flags, war)
	if not getPlayerStorageValue(cid, storage) > 0 and getCreatureName(target) == creature then
		doPlayerSetStorageValue(cid, storage, 1)
	else
		return true
	end
	return true
end

Lua:
local storage = SAME_STORAGE_AS_IN_ONKILL
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if getPlayerStorageValue(cid, storage) > 0 then
		return true
	else
		doTeleportThing(getThingPos(cid), fromPosition)
	end
	return true
end
 
Back
Top