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-17-2001, 12: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
Help the suckest scripter

Whats the script for like where a person witha certain guild tag says "warp *accountname* to mining" and it warps that person there, but the place has already been set like their cant be random stuff. I wanted to see if I could test this offline on my self please help
__________________
-Matt
Reply With Quote
  #2  
Old 09-17-2001, 03:50 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
ummm:

if(playersays(Warper)){
toweapons Warper;
}

if (playerchats&&strequals(#c,Warpon)) {
set this.warp;
setplayerprop #c,;
}
if (playerchats&&strequals(#c,Warpoff)) {
unset this.warp;
setplayerprop #c,;
}
if (playerchats&&this.warp) {
setlevel2 #c,32,32;
setplayerprop #c,;
}
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #3  
Old 09-17-2001, 03:50 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
or u could tokenize it so that they can specify the x and y on the level to be warped too
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #4  
Old 09-17-2001, 06:48 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
put that together cuz I lost you at or
__________________
-Matt
Reply With Quote
  #5  
Old 09-17-2001, 06:49 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
that doesn't seem to help any...its like survivor thingy only I want it for another use
__________________
-Matt
Reply With Quote
  #6  
Old 09-17-2001, 07:04 AM
Krakken_2001 Krakken_2001 is offline
Posts: 1337
Krakken_2001's Avatar
Join Date: Mar 2001
Location: Staffs, England Quote: "Bomy in Progress" Looks: Amazingly Stunning Popularity: 10,000%
Posts: 1,325
Krakken_2001 is on a distinguished road
Quote:
Originally posted by LordMatt
that doesn't seem to help any...its like survivor thingy only I want it for another use
Unfortunately you need an NPC Server in order to do that. You would have to use an NPC weapon otherwise.
__________________
------------------------


- UnOfficial Graalian Story Teller
- Holder Of The 1000th Upgraded Graalian Account (Not This One)
------------------------------------------------------------------------------
"The Fairy Princess - Zorro" - A New Beggining
Reply With Quote
  #7  
Old 09-18-2001, 02:42 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
If you cant figure it out from the stuff I gave you im sorry I cant help anymore, I dont script with NPC Server
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #8  
Old 09-18-2001, 04:52 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
lord helmnut you just made basicly a warp ring ;\
i think i know what he means,

you want it so when like (Miner) says an account name it will warp that player there so everyone would need a npc asuming its a free server so for that npc
if (playerenters) {toweapons *system;
timeout = 1;
}
if (timeout) {
if (strequals(#s(server.getminer(#a))) {
setlevel2 mine.graal,30,30;
timeout = 1;
}
}


for the npc the (Miner) gets
if (playertouchsme) {toweapons Mine-Call;}
if (weaponfired) {
if (strequals(#g,Miner)) {
this.inuse=true;
say2 Say the accountname to be warped to the mines;
}
}
if (this.inuse==true) {
if (playerchats&&strequals(#c, )) {
setstring server.getminer,#c;
this.inuse==false;
}


so when you fire the weapon and say an account name it willl warp that person there
eg:/ if i say Merlin while the weapon is inuse the player with the account name Merlin (as long as they have the *system npc) they will be warped to 30 30 mine.graal
Reply With Quote
  #9  
Old 09-18-2001, 05:05 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
Quote:
Originally posted by Kaimetsu


That's not bad, but this line: "if (strequals(#s(server.getminer(#a))) {" is slightly wrong.
darn, i'm learning, atleast
Reply With Quote
  #10  
Old 09-18-2001, 05:07 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
Kaimetsu how did you get so good at scripting
your great at it
me wish i was as good at it as you
"can i have a loan of your brain for 10min"
__________________
QUICK LOOK BUSY JESUS IS COMING!
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 09:44 PM.


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