Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Account warper (https://forums.graalonline.com/forums/showthread.php?t=16427)

Kumada 11-08-2001 10:16 PM

Account warper
 
how can you warp an account with an npc without npcserver like on non-p2p servers..
so when you say
warp player jimmy server-1.graal 30 30

it would warp account jimmy to server-1.graal x30 y30

Python523 11-09-2001 03:06 AM

Try looking into tokenize and server strings

ArmadeusWarlock 11-09-2001 05:56 AM

Ummmm
 
Im not entirely sure that will even work. That is like basically trying to do a warpto. Warpto is a special thing on certain rc's, and you cant do tokens or strings to do warpto on graal. Its been tried. You can, however, use server strings and a set location to warp them such as:

For the person warping:

if(startswith(warp,#c)){
tokenize #c;
setstring server.lalala,#t(1);
}

For the person to be warped:
if(strequals(#a,#s(server.lalala))){
setlevel2 thislevel.nw,30,30;
setstring server.lalala,;
}

Now, that MIGHT work. Not sure if it will or not. Try it.

maximus_asinus 11-09-2001 09:21 AM

Think before you speak
 
You can make warpto.I alreay made it.Its pretty cool and the script isn't that hard.

Lyndzey 11-09-2001 11:23 AM

For warping a player (like an account) you would need NPC Server for getplayer. Warpto is very easy. ;\

nyghtGT 11-09-2001 12:39 PM

Quote:

Originally posted by Lyndzey
For warping a player (like an account) you would need NPC Server for getplayer. Warpto is very easy. ;\
well said :D

nyghtGT 11-09-2001 12:40 PM

I WUB KELLY !!!!!!!!!!!!!!!!!!

TDO2000 11-09-2001 08:00 PM

here we go:

for the guy who warpes (Staff)

if(playerchats && startswith(warp,#c)){
tokenize #c;
setstring server.warping,#t(1) #t(2) #t(3) #t(4); //Account Level x Y
}

for the guy who gets warped:

if(playerenters || timeout){
if(!hasweapon(-warping)){toweapons -warping;}
if(startswith(#a,#s(server.warping))){
tokenize #s(server.warping);
setstring server.warping,;
setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
timeout=.05;
}

should work. It's used like u wanted it...

Xaviar 11-10-2001 01:45 AM

Quote:

Originally posted by TDO2000
here we go:

for the guy who warpes (Staff)

if(playerchats && startswith(warp,#c)){
tokenize #c;
setstring server.warping,#t(1) #t(2) #t(3) #t(4); //Account Level x Y
}

for the guy who gets warped:

if(playerenters || timeout){
if(!hasweapon(-warping)){toweapons -warping;}
if(startswith(#a,#s(server.warping))){
tokenize #s(server.warping);
setstring server.warping,;
setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
timeout=.05;
}

should work. It's used like u wanted it...

Use a timeout of like 5 seconds, there's still almost no chance that 2 staff members will try warping people within 5 seconds of each other, and that way, you aren't accessing a server.string every .05 seconds (which is a bad thing)

grim_squeaker_x 11-10-2001 01:46 AM

If you're not P2P just use RC.

Xaviar 11-10-2001 02:06 AM

Quote:

Originally posted by Lyndzey
For warping a player (like an account) you would need NPC Server for getplayer. Warpto is very easy. ;\
[Kaimetsu]
Well, that depends. It gets less easy if you actually want it to work. You can't use getplayer directly from a weapon.
[/Kaimetsu]

TDO2000 11-10-2001 02:06 AM

it was just an example but grim is right... use rc

Saga2001 11-13-2001 02:02 AM

That last post i saw is the best...
 
There are a few possible better ways, like i like to have separate server variables set, i know setting them lags the server, but that way if one does not get killed out of lag, you can make it so it is a list, it works very well... :-)
--PastAustin
(A lot easier on npc server)

nyghtGT 11-13-2001 04:03 AM

Quote:

Originally posted by TDO2000
here we go:

for the guy who warpes (Staff)

if(playerchats && startswith(warp,#c)){
tokenize #c;
setstring server.warping,#t(1) #t(2) #t(3) #t(4); //Account Level x Y
}

for the guy who gets warped:

if(playerenters || timeout){
if(!hasweapon(-warping)){toweapons -warping;}
if(startswith(#a,#s(server.warping))){
tokenize #s(server.warping);
setstring server.warping,;
setlevel2 #t(1),strtofloat(#t(2)),strtofloat(#t(3));
}
timeout=.05;
}

should work. It's used like u wanted it...

just to make you mad ...
what about with people with spaces in their account ?
:-D

TDO2000 11-13-2001 08:18 PM

Quote:

Originally posted by nyghtGT

just to make you mad ...
what about with people with spaces in their account ?
:-D

so u say

warp "Account with spaces" level x y

this works too I have tested it ;b

LiquidIce00 11-14-2001 12:30 AM

Quote:

Originally posted by Lyndzey
For warping a player (like an account) you would need NPC Server for getplayer. Warpto is very easy. ;\
not if u use a system npc.

TDO2000 11-14-2001 12:53 AM

warpto player is easy too ;)


All times are GMT +2. The time now is 03:43 AM.

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