Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-08-2001, 10:16 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
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
__________________
Aim: Mmm Kumada

Reply With Quote
  #2  
Old 11-09-2001, 03:06 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Try looking into tokenize and server strings
Reply With Quote
  #3  
Old 11-09-2001, 05:56 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
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.
Reply With Quote
  #4  
Old 11-09-2001, 09:21 AM
maximus_asinus maximus_asinus is offline
RIP DarkCloud_PK
Join Date: Oct 2001
Location: Canada
Posts: 3,751
maximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond reputemaximus_asinus has a reputation beyond repute
Unhappy Think before you speak

You can make warpto.I alreay made it.Its pretty cool and the script isn't that hard.
__________________
Save Classic!
Reply With Quote
  #5  
Old 11-09-2001, 11:23 AM
Lyndzey Lyndzey is offline
Woman
Lyndzey's Avatar
Join Date: Aug 2001
Posts: 2,875
Lyndzey is a jewel in the roughLyndzey is a jewel in the rough
For warping a player (like an account) you would need NPC Server for getplayer. Warpto is very easy. ;\
Reply With Quote
  #6  
Old 11-09-2001, 12:39 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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
Reply With Quote
  #7  
Old 11-09-2001, 12:40 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
I WUB KELLY !!!!!!!!!!!!!!!!!!
Reply With Quote
  #8  
Old 11-09-2001, 08:00 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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...
__________________
No Webhost at the moment
Reply With Quote
  #9  
Old 11-10-2001, 01:45 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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)
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #10  
Old 11-10-2001, 01:46 AM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
If you're not P2P just use RC.
__________________

Reply With Quote
  #11  
Old 11-10-2001, 02:06 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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]
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #12  
Old 11-10-2001, 02:06 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
it was just an example but grim is right... use rc
__________________
No Webhost at the moment
Reply With Quote
  #13  
Old 11-13-2001, 02:02 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Lightbulb 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)
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #14  
Old 11-13-2001, 04:03 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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
Reply With Quote
  #15  
Old 11-13-2001, 08:18 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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
__________________
No Webhost at the moment
Reply With Quote
  #16  
Old 11-14-2001, 12:30 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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.
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #17  
Old 11-14-2001, 12:53 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
warpto player is easy too
__________________
No Webhost at the moment
Reply With Quote
Reply


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 10:08 PM.


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