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

doRemoveCreature ...

Wifixs

New Member
Joined
Jul 20, 2009
Messages
18
Reaction score
1
Well ty..

I resolved my self....(doRemoveCreature)
Chjroak (x, y, z,)

Its is work u can tested :O




Lua:
function onStepIn(cid, item, pos)
	local config = 
	{
		positions = 
		{
         	     {x = pos.x - 1, y = pos.y - 1, z = pos.z},
          	    {x = pos.x - 1, y = pos.y + 1, z = pos.z}
		},
		monsterName = "Trainer"
	}

	if item.actionid == 30001 then
		for i = 1, table.maxn(config.positions) do
		if isPlayer(cid) == TRUE then
			doSummonCreature(config.monsterName, config.positions[i])
		else
			return FALSE
		end
    	end
	    end
        end

function onStepOut(cid, item, pos)
	local config = 
	{
		positions = 
		{
         	     {x = pos.x - 1, y = pos.y - 1, z = pos.z, stackpos=253},
          	    {x = pos.x - 1, y = pos.y + 1, z = pos.z, stackpos=253}
		},
		monsterName = "Trainer"
	}
	if item.actionid == 30001 then
		for i = 1, table.maxn(config.positions) do
		if isPlayer(cid) == TRUE then
			doRemoveCreature(getThingfromPos(config.positions[i]).uid)
			doSendMagicEffect(config.positions[i], CONST_ME_YALAHARIGHOST)
		else
			return FALSE
		end
		end
		end
		end
 
Last edited:
Back
Top