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..
If you want change the look type of the traier no the look type that have the trainers in wypas ot then change
To
NOTE: This script is only for the effect, with this script, you don't buy a time in the room.
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"/>
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: