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 09-04-2001, 06:43 PM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
Staff Warping

Does anyone know the script for the Warper Birdbird_0 has? The script MUST work so that if someone has the NPC Staff Warper, and they say warpto x y levelname.graal it warps them there and while its warping them there it uses warp3.gani and warp4.gani (just like Birdbird_0 uses, please tell me, PM me or something)

Or just post a reply on here with the script.
__________________
DragonX -Asst- (Events Admin)

Last edited by DragonBladesX; 09-04-2001 at 06:46 PM..
Reply With Quote
  #2  
Old 09-05-2001, 12:53 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
Um. I have one. This code will only work for a free server, though:
NPC Code:

if (playerchats) {
if (startswith(warpto,#c)) {
tokenize #c;
if (tokenscount==4) {
<insert gani stuff here>
setlevel2 #t(3),strtofloat(#t(1)),strtofloat(#t(2));
}
}
}



I may have setlevel2 wrong. I think its level,x,y but it might be x,y,level... Oh well.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #3  
Old 09-05-2001, 12:53 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 (playerchats&&startswith(#c,warpto)) {
setani warpani,;
}
because it's just using rc warpto
Reply With Quote
  #4  
Old 09-05-2001, 03:46 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
Can you tell me the whole script by like picking it up and it going into your items as Staff Warper?
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #5  
Old 09-05-2001, 04:15 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Re: Staff Warping

Quote:
Originally posted by DragonBladesX
Does anyone know the script for the Warper Birdbird_0 has? The script MUST work so that if someone has the NPC Staff Warper, and they say warpto x y levelname.graal it warps them there and while its warping them there it uses warp3.gani and warp4.gani (just like Birdbird_0 uses, please tell me, PM me or something)

Or just post a reply on here with the script.
he uses a simple thing called warpto
your account rights get changed and it allows you to use it
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #6  
Old 09-05-2001, 04:36 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
here's a small and simple one.

//NPC made by Josey Hunt
if (playertouchsme) {toweapons Level Warper;hidelocal
}
if (weaponfired) {setlevel #c.graal}

it doesnt have the x,y positions but that would be easy to add.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #7  
Old 09-05-2001, 04:43 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
Im not taking about a simple warpto :grrr: I want it to use warp3.gani when the person says warpto x y levelname.graal and when they get in that level I want warp4.gani to start nobody knows? =(
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #8  
Old 09-05-2001, 04:47 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
Why didn't you say so?

okay, I cant figure that one out, wait, yes I can....
try this:

if (playertouchsme){
toweapons MEGA WARP THING!;
}
if (weaponfired){
set warping;
freezeplayer 2;
setani warp3.gani,;
setlevel2 #c.graal;
}
//Then put this in every level:
if (playerenters&&warping){
freezeplayer 2;
setani warp4.gani,;
unset warping;
}

-Rebel95
Reply With Quote
  #9  
Old 09-05-2001, 04:51 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
BRB im gonna try that, I hope it works =D
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #10  
Old 09-05-2001, 04:52 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
When i put that script in on the setlevel2 #c.graal it said error: Expected format string,real,real
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #11  
Old 09-05-2001, 04:59 AM
Enigma_GP6 Enigma_GP6 is offline
Banned
Join Date: Jul 2001
Location: Who?
Posts: 261
Enigma_GP6 is on a distinguished road
Send a message via ICQ to Enigma_GP6 Send a message via AIM to Enigma_GP6
okay, well, try this:

if (playertouchsme){
toweapons Piece 'o' Crap;
}
if (weaponfired){
set warping;
freezeplayer 2;
setani warp3.gani,;
setlevel2 #c.graal,#c,#c;
}
//Then put this in every level:
if (playerenters&&warping){
freezeplayer 2;
setani warp4.gani,;
unset warping;
}
Reply With Quote
  #12  
Old 09-05-2001, 05:04 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
Heh, can you make it so I dont have to fire it (press D) when i wanna warp but instead if i have it in my inventory than i will be warped?
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #13  
Old 09-05-2001, 05:39 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
"don't use flags in npcws" -kai

use this.started=true
this.started=false
or something
Reply With Quote
  #14  
Old 09-05-2001, 06:10 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
Quote:
Originally posted by DragonBladesX
Im not taking about a simple warpto :grrr: I want it to use warp3.gani when the person says warpto x y levelname.graal and when they get in that level I want warp4.gani to start nobody knows? =(
Ok u know what, I cant see why everyone is being nice to you. You ask for a script which usually pisses everyone off and they are being nice. I was gonna help (i can atleast script these but not much else) but then you made this little post and use the angry face and u dont even know how to make it go to ur weapons! =/ that is so stupid. Oh well... I guess its cuz u got 19 post.

Hmm i guess I will make it... brb
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #15  
Old 09-05-2001, 06:17 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
Quote:
Originally posted by DragonBladesX
Heh, can you make it so I dont have to fire it (press D) when i wanna warp but instead if i have it in my inventory than i will be warped?
hmm i guess someone already made it, i shoulda read more of it heh. if you want it so that you can control it by voice make it check to see if they have weapon and then...

if(hasweapon(warper)&&playerchats&&strequals(#c,le vel1.graal)){
action;
}

you can fix that up but just use it to check for the weapon. Wait that doesnt check for the current weapon. Sorry ignore all that heh.

do this

if(weaponfired){ //checks if weapon fired
set warper;
}
and then do check for what level the player says (and maybe x and y if u wanna be cool)

As you can see im getting better at programming but have no way to express what im saying. I guess the next post I can answer I will make the code and put it on and not talk
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #16  
Old 09-05-2001, 06:17 AM
DragonBladesX DragonBladesX is offline
Registered User
Join Date: Aug 2001
Location: New York
Posts: 190
DragonBladesX is on a distinguished road
Send a message via AIM to DragonBladesX Send a message via Yahoo to DragonBladesX
Its not a mean face, and they are nice to me because I am nice to them im not a mean person. I just put that face cause everybody was posting the regular warpto and not the one i want although they are trying
__________________
DragonX -Asst- (Events Admin)
Reply With Quote
  #17  
Old 09-05-2001, 06:21 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
sowwy
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #18  
Old 09-05-2001, 07:33 AM
LordMatt LordMatt is offline
V Avatar
LordMatt's Avatar
Join Date: Jun 2001
Location: Texas
Posts: 954
LordMatt is on a distinguished road
Send a message via AIM to LordMatt
if (playertouchsme) {
this.action=0;
toweapons Warper;
say2
HOW TO USE:#b
Use just like a RC account.#b
Say warpto x y to warp to a #b
certain x and y cordinate on #b
the board.#b
Say warpto x y levelname.graal #b
to warp to a certain x,y and #b
level name.;
}
if (playerchats&&isweapon) {
tokenize #c;
if(strequals(#t(0),warpto)){
if(tokenscount==4){
this.x=strtofloat(#t(1));
this.y=strtofloat(#t(2));
setlevel2 #t(3),this.x,this.y;
}
if(tokenscount==3){
this.x=strtofloat(#t(1));
this.y=strtofloat(#t(2));
setlevel2 #L,this.x,this.y;
}
}}
__________________
-Matt
Reply With Quote
  #19  
Old 09-06-2001, 02:52 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I dont know why people have Staff weapons. Its a waist of time that could be spent on more important things like eating and sleeping. Why waist ANY time making them when there is that WONDERFUL device that stefan made that outdoes them! REMOTE CONTROL!
__________________

subliminal message: 1+1=3
Reply With Quote
  #20  
Old 09-06-2001, 04:27 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Amazingly, this guy's constantly bugging me on Graal. He can't wrap his head around setani warp3,; going before the setlevel, apparently...because nothing runs after a setlevel
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #21  
Old 09-06-2001, 05:19 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
I'm not gonna script out the whole thing, but I will tell how to do the ganis...

1st off, before the setlevel2, put the first gani...

2nd, also before the setlevel2, put this.mode=1

3rd... if (playerenters && this.mode=1){setani the-gani,param;this.mode=0;}

Tada =/
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #22  
Old 09-06-2001, 06:16 AM
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:
Originally posted by Tyhm
Amazingly, this guy's constantly bugging me on Graal. He can't wrap his head around setani warp3,; going before the setlevel, apparently...because nothing runs after a setlevel

which is why that old jailing script that every n00b server uses doesn't work

setlevel2 jail.graal,20,20;
setstring server.jailaccount,;

I think its funny that they all stole the same script...and not a single one fixed it
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 04:34 AM.


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