ELEM3NT
LUA Status: Beginner
Okay, uh well I have an event called "Maze Event" and you have to run around looking like a rat looking for the cheese.
Script 1)The first person to right click the cheese wins! But the only thing is that I need it so when he wins, everyone in the event gets tped back to the temple or any another position. So like right click cheese>everyone gets tped to temple. My working script atm, just need the tp thing:
mazecheese.lua
Don't mind my tabbing lol..
2) How do I make it so everyone is the same speed in the area? Like from xyz to xyz everyones the same speed so people won't overpower someone else, or is it like a certain tile that makes them slow? :O?
If you can make any of these scripts, please do so!
ThanksAndBYE
eace:
Script 1)The first person to right click the cheese wins! But the only thing is that I need it so when he wins, everyone in the event gets tped back to the temple or any another position. So like right click cheese>everyone gets tped to temple. My working script atm, just need the tp thing:
mazecheese.lua
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
ppos = getPlayerPosition(cid)
temple = getPlayerMasterPos(cid)
if item.itemid == 2696 then
doBroadcastMessage(getPlayerName(cid) .. " has won the maze event! Congratulations! Please leave the event now, tp is where you started. Stay tune for the next manual event! ", 22)
doPlayerAddItem(cid, 9020, 10)
doRemoveItem(cid, item.uid, 1)
doTeleportThing(cid, temple, TRUE)
doSendMagicEffect(temple,66)
end
end
2) How do I make it so everyone is the same speed in the area? Like from xyz to xyz everyones the same speed so people won't overpower someone else, or is it like a certain tile that makes them slow? :O?
If you can make any of these scripts, please do so!
ThanksAndBYE