Thread: Warpto System
View Single Post
  #1  
Old 02-20-2005, 10:54 PM
TESTRETIS TESTRETIS is offline
Zvarri!
TESTRETIS's Avatar
Join Date: Oct 2003
Posts: 970
TESTRETIS has a spectacular aura about
Warpto System

I based this off Shifter's..I think he made the original one? Anyway, I guess you could say I "re-made" it but now it doesn't require access to a DBNPC to change the permissions, just need to edit the accounts that are in each section. Feel free to use this on your server as you wish, you may edit it to your own will, just be sure to give me proper credit whenever. Not the GREATEST scripting in the world, but it works. Enjoy.

Also, for editing accounts, just add on an additional or (||) statement to each account. This should be mainly given to Non-RC Staff members.

NPC Code:

//NPC By Ben Rain
if (actionserverside) {
if (strequals(#p(0),ul)) {
sendtorc /updatelevel #p(1);
setplayerprop #c,Sucessful!;
}
if (strequals(#p(0),warpto)) {
setlevel2 #p(3),strtofloat(#p(1)),strtofloat(#p(2));
}
if (strequals(#p(0),warptoplayer)) {
with (getplayer(#p(1))) {
setstring this.level,#F;
this.x = playerx;
this.y = playery; }
setlevel2 #s(this.level),this.x,this.y;
}
}


//#CLIENTSIDE
if (playerchats&&startswith(warpto,#c)) {
tokenize #c;
if (tokenscount>2) {
if (strequals(#a,account1)||strequals(#a,account2)) {
triggeraction 0,0,serverside,Staff/Warpto,warpto,#v(strtofloat(#t(1))),#v(strtofloat( #t(2))),#t(3);
}
}
else if (tokenscount=2) {
if (strequals(#a,account1)||strequals(#a,account2)) {
triggeraction 0,0,serverside,Staff/Warpto,warptoplayer,#t(1)
}
}
}
if (playerchats&&strequals(#c,update level)) {
if (strequals(#a,account1)||strequals(#a,account2)) {
triggeraction 0,0,serverside,Staff/Warpto,ul,#L,;
}
}



Note: Players will still get message such as "Not authorized to warpto"
Reply With Quote