View Single Post
  #8  
Old 07-10-2001, 08:01 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
It can! First, you would need to make a system NPC.
NPC Code:

if (created || playerenters) {
toweapons -system;
timeout=5;
}
if (timeout) {
CheckForWarp();
CheckForWhatever();
timeout=5;
}
function CheckForWarp() {
if (strequals(#a,#s(server.Warp_Account))) {
setlevel2 #s(server.Warp_Level),server.Warp_X,server.Warp_Y;
setstring server.Warp_Account,;
}
}


And, for the weapon to warp people there:
NPC Code:

if (created || playerenters) {
toweapons -StaffPower;
}
if (playerchats && isweapon) {
if (startswith(warpplayer,#c)) {
tokenize #c;
if (tokenscount==4) { //warpplayer account x y - 4 tokens
setstring server.Warp_Account,#t(1);
server.Warp_X=#t(2);
server.Warp_Y=#t(3);
}
}


Now, there might be bugs in this code, but this is how to basically do this. =P Hope that helps.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote