Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.