Coltain13
New Member
- Joined
- May 4, 2008
- Messages
- 22
- Reaction score
- 0
So I figured that I would be able to do this on my own but I guess I was wrong. I got everything I needed to enter the Training Monks but when it comes to leaving, thats a different story.
I've got:
which does
to
which is what I want when you enter it. When you leave I want it to change the gem back to green and un-summon the Training Monks. The only kick is that I want to do it without giving exact coordinates because I got about 100 of the stalls and I want to be able to do it with just a few scripts and not 100.
This is all I got when you exit:
which does:
because I can't figure out a way to make it work.
So anyone that can help, thanks a ton!
_Coltain
I've got:
Code:
function onStepIn(cid, item, position, position)
local spawnMonk1 = {x = position.x-1, y = position.y-5, z = position.z}
local spawnMonk2 = {x = position.x+1, y = position.y-5, z = position.z}
if item.actionid == 5000 then
if item.itemid == 9565 then
doSummonCreature("Training Monk", spawnMonk1)
doSummonCreature("Training Monk", spawnMonk2)
doTransformItem(item.uid, item.itemid - 3)
local newposition = {x = position.x, y = position.y-4, z = position.z}
doTeleportThing(cid, newposition)
doSendMagicEffect(newposition, 12)
else
local newposition = {x = position.x, y = position.y, z = position.z}
doTeleportThing(cid, newposition)
doSendMagicEffect(newposition, 12)
end
end
return TRUE
end
which does
to
which is what I want when you enter it. When you leave I want it to change the gem back to green and un-summon the Training Monks. The only kick is that I want to do it without giving exact coordinates because I got about 100 of the stalls and I want to be able to do it with just a few scripts and not 100.
This is all I got when you exit:
Code:
function onStepIn(cid, item, position, position)
if item.actionid == 5001 then
local newposition = {x = position.x, y = position.y+4, z = position.z}
doTeleportThing(cid, newposition)
doSendMagicEffect(newposition, 12)
end
return TRUE
end
which does:
because I can't figure out a way to make it work.
So anyone that can help, thanks a ton!
_Coltain