• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

MoveEvent Trainers like in WypasOT

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
Hello... days ago i enter to Wypas OT and i like the effect that the trainers have on having disappeared, I did it for my server and for that they like like I, here this one..

Code:
local config = 
{
	positions = --positions where the trainers will appear
	{
		{x=149, y=159, z=7, stackpos = 253},
		{x=151, y=159, z=7, stackpos = 253}
	},
	monsterName = "Trainer"
}

function onStepIn(cid, item, pos)

	if item.actionid == 5320 and item.itemid == 426 then
		for i = 1, table.maxn(config.positions) do
		if isPlayer(cid) == TRUE then
			doCreateMonster(config.monsterName, config.positions[i])
			doTransformItem(item.uid, item.itemid-1)
		else
			return FALSE
		end
	end
	end
end

function onStepOut(cid, item, pos)
	if item.actionid == 5320 and item.itemid == 425 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)
			doTransformItem(item.uid, item.itemid+1)
		else
			return FALSE
		end
	end
	end
end

Code:
 426 --Id of the floor. (Without pressing)
 425 -- Id of the floor. (Pressed)

If you want change the look type of the traier no the look type that have the trainers in wypas ot then change

Code:
<look type="57" head="20" body="30" legs="40" feet="50" corpse="6080"/>
To
Code:
<look typeex="5787"/>

NOTE: This script is only for the effect, with this script, you don't buy a time in the room.
 
Last edited:
I gotta make a .lua file with those commands to EACH TRAINING ROOM?

amagad.
 
Back
Top