dizoxur
New Member
- Joined
- Feb 27, 2009
- Messages
- 54
- Reaction score
- 0
Well here's the script:
Movements.xml
MagicWallEntrance.lua
The file's at the right location, rly don't know what's wrong. What it should do: when a player steps on a tile and HAS a holy tible, it teleports the player to location "position2", ifnot to "position". But for some reason it doesn't work.. Any idea why?
PS: The tile DOES have the uniqueid 10201. Will give rep if you solve this!
Movements.xml
PHP:
<movevent type="StepIn" actionid="10201" event="script" value="PitsOfInferno/MagicWallEntrance.lua" />
MagicWallEntrance.lua
PHP:
local position = {x=920, y=545, z=8}
local position2 = {x=912, y=525, z=8}
function onStepIn(cid, item, pos)
if (getPlayerItemCount(cid,1970) < 1) then
doTeleportThing(cid,position)
doSendMagicEffect(position,10)
else
doTeleportThing(cid,position2)
doSendMagicEffect(position2,10)
end
end
The file's at the right location, rly don't know what's wrong. What it should do: when a player steps on a tile and HAS a holy tible, it teleports the player to location "position2", ifnot to "position". But for some reason it doesn't work.. Any idea why?
PS: The tile DOES have the uniqueid 10201. Will give rep if you solve this!