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 07-22-2001, 10:12 PM
Louis_one Louis_one is offline
Registered User
Join Date: Jun 2001
Location: Alabama and France
Posts: 113
Louis_one is on a distinguished road
Send a message via ICQ to Louis_one Send a message via AIM to Louis_one Send a message via Yahoo to Louis_one
Question Account Warping

OK i have look at all threads ...... noone can help me .......

I need an NPC like a Gopolice .

A npc that work on this form : #c Warp {accountname}

i dunno if i can do it without a code in the NPC system

( it is a non-p2p playerworld ( no npc server ))

DOES SOMEBODY CAN HELP ME ?
__________________

Reply With Quote
  #2  
Old 07-22-2001, 11:58 PM
Silver Knight Silver Knight is offline
The Ice Cream Social
Silver Knight's Avatar
Join Date: Jun 2001
Location: SoCal
Posts: 541
Silver Knight is on a distinguished road
Send a message via AIM to Silver Knight
what do you mean #c Warp [accountame]?
you mean if (strequals #c,Warp account)?
__________________
Reply With Quote
  #3  
Old 07-23-2001, 02:14 AM
Louis_one Louis_one is offline
Registered User
Join Date: Jun 2001
Location: Alabama and France
Posts: 113
Louis_one is on a distinguished road
Send a message via ICQ to Louis_one Send a message via AIM to Louis_one Send a message via Yahoo to Louis_one
no

if the npc owner chats : accountname

the account is warped to a level
__________________

Reply With Quote
  #4  
Old 07-23-2001, 02:30 AM
Merlin Merlin is offline
Banned
Merlin's Avatar
Join Date: Jul 2001
Location: Merlin - U S A Malak - United Kingdom
Posts: 2,543
Merlin is on a distinguished road
Send a message via ICQ to Merlin Send a message via AIM to Merlin
if you cant do any of it on your own DONT ASK,
Reply With Quote
  #5  
Old 07-23-2001, 04:31 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Merlin is so nifty =D hes got that cool saying he likes to use on everyone who doesnt do any of it on their own =D LOL

Anyways, Louis, are you trying to make like a jail warping thing that warps a account to jail??
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #6  
Old 07-23-2001, 06:37 AM
foxstar70 foxstar70 is offline
Banned
Join Date: Jun 2001
Location: New Castle, UK
Posts: 201
foxstar70 can only hope to improve
Send a message via AIM to foxstar70
LMAO that is sooooooo easy
Reply With Quote
  #7  
Old 07-23-2001, 08:12 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
Ya its really easy but I only know how to do it on a NPC server. Do you know how to do it on a free server Fox??
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #8  
Old 07-23-2001, 08:25 AM
Guest
Posts: n/a
to do it you have to use server flags and a system...
Reply With Quote
  #9  
Old 07-23-2001, 08:26 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
Make a system NPC. In it, use this code:
NPC Code:

if (created || playerenters) {
toweapons -System;
timeout=0.1;
}
if (timeout && isweapon)
CheckForWarp();
DoWhateverSystemStuffYouWant();
timeout=0.1;
}
function CheckForWarp() {
if (strequals(#a,#s(server.warp_player))) {
setlevel2 #s(server.warp_level),#v(strtofloat(#s(server.warp _x))),#v(strtofloat(#s(server.warp_y)));
setstring server.warp_player,;
}
}


Now, for the NPC. Format: warp <account> <level> <x> <y>
NPC Code:

if (playerchats && startswith(warp,#c)) {
tokenize #c;
if (tokenscount==4) {
setstring server.warp_player,#t(1);
setstring server.warp_level,#t(2);
setstring server.warp_x,#t(3);
setstring server.warp_y,#t(4);
}
}


Try that. I just now made that up, so I haven't debugged it.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #10  
Old 07-23-2001, 08:29 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
BOCO IS A GENIUS!!!


BTW, HAPPY 17TH BIRTHDAY!!!
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #11  
Old 07-23-2001, 08:45 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
So waht would you have to say to warp them?
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #12  
Old 07-23-2001, 12:19 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Quote:
setlevel2 #s(server.warp_level),#v(strtofloat(#s(server.warp _x))),#v(strtofloat(#s(server.warp_y)));
setstring server.warp_player,;
setlevel2 is like a break; command...it wont work unless its reversed

setstring server.warp_player,;
setlevel2 #s(server.warp_level),#v(strtofloat(#s(server.warp _x))),#v(strtofloat(#s(server.warp_y)));
Reply With Quote
  #13  
Old 07-24-2001, 07:15 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 General

setlevel2 is like a break; command...it wont work unless its reversed

setstring server.warp_player,;
setlevel2 #s(server.warp_level),#v(strtofloat(#s(server.warp _x))),#v(strtofloat(#s(server.warp_y)));
yes and also u dont need #v in that I dont think.
__________________
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
  #14  
Old 07-24-2001, 12:16 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
LoL, Boco's minions (AKA Bravo Staff) keep telling me how much better he can script than anyone else (3rd best scripter in graal heh) and here i am correcting his mistakes....Bravo plz burn in hell
Reply With Quote
  #15  
Old 07-24-2001, 12:17 PM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Oh yah, i didnt see the #v() in there, you cant use message codes in a real...
Reply With Quote
  #16  
Old 07-25-2001, 08:45 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
Quote:
setlevel2 is like a break; command...it wont work unless its reversed

setstring server.warp_player,;
setlevel2 #s(server.warp_level),#v(strtofloat(#s(server.warp _x))),#v(strtofloat(#s(server.warp_y)));
No. It will still run the script because it is a weapon. Weapon scripts still run even after a level change.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
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 11:41 PM.


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