![]() |
Admin Chat Commands...
Just recently I've attempted to script 3 admin chat commands like
- warpto x y levelname - warpto accountname - teleport accountname actionnumber - update level levelname the warpto x y levelname is easy: if(playerenters) toweapons *warpto x y levelname; if(playerchats && indexof(warpto,#c)==0){ tokenize #c; setstring warptolevel,#t(3); playerx=strtofloat(#t(1)); playery=strtofloat(#t(2)); setlevel #s(warptolevel); } I think most ppl figured that one out, heh, but the commands - warpto accountname - teleport accountname actionnumber - update level levelname just stumps me. How <i>do</i> you get another player to warp, that I cannot find out. Anyone have a clue? x.x |
Is this for NPC Server? It would be a lot easier to do.
|
re-vamped
NPC Code: Just substute "staff" for what staff would get the NPC. |
Quote:
NPC Code: I fixed spelling error :) |
what did I miss spell?
|
NPC Code: as for the teleport, i dont know what the actionnumber is so, Xx |
Teleport CrimsonLotus9838 2 <-- warps me to the GC, usually gcwaitingroom.graal :o)
Teleport CrimsonLotus9838 4 <-- warps me to somewhere else, i.e. house3newbie.graal, gcarena1.graal btw people really amaze with the new commands, theres none of that "indexOf", "getplayer", and "startswith" when I left Graal during 1.45...(I came back after Infantry became p2p) |
it's
"strequals(#g,guildname))" and "startswith(word,#whatever))" |
Quote:
|
No, I don't say "teleport"
The GC/GP/LAT/FAQ says the "teleport" and makes me warp to them -or- get warped away from the event. |
What you want is an Admin NPC/Loriel's RC/Whatever other names may exist for what is best described as the script that does stuff when a staff member says "control command account params separated by spaces"
They're not hard to do if you have an NPC server. |
I still cant figure out a way to get the level from the player you call to warpto. I can get the x and y right but I always end up with the level I am in. Is there anyway to warp2 accountname without rc?
|
Quote:
|
Quote:
|
i dunno but crim has a piss-tight sig!:D
|
| All times are GMT +2. The time now is 10:01 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.