Only works right for the first player in the level.
if the second player touches it, it runs up until the timeout correctly, but the timeout never finishes and runs the next code to do the teleport.
if the first player touches it, it works fine and does end up teleporting them both. even if the second player moved along a few moments ago because it didn’t work…
get it? If you need the gani’s. just hop on rogueworld so they download, easier.
[CODE]
// NPC made by Rogue
if (created){
message Teleporter;
dontblock;
drawunderplayer;
setimg warptile.gif;
}
if (playertouchsme) {
freezeplayer .75;
setani teleport_out,;
timeout =0.75;
}
if (timeout){
setani teleport_in,;
setlevel2 ndd_outside_01_01.nw,30,50;
}[/CODE]
I don’t know if this will help you or not. This is the teleport script I use in the Xoria Mage’s Guilds. It works by the player saying “/teleport” and having enough XGP to pay for the service, rather then stepping on a tile. Hope this helps.
// NPC made by Arcain
// Mage teleporter
if (playerchats&&strequals(#c,/teleport)) {
if (strtofloat(#s(client.xgp)) < 1){
say 1;}
if (strtofloat(#s(client.xgp)) > 0){
setstring client.xgp,#v(strtofloat(#s(client.xgp))-1);
setplayerprop #c,Teleported!;
players[1].dir = 1 * 2;
players[1].sprite = 1 * 0;
setlevel2 cervole_mage8.nw,17,23;
}
}