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 06-22-2002, 01:37 AM
DragonX2 DragonX2 is offline
Graal2002 Addict
DragonX2's Avatar
Join Date: Dec 2001
Location: NY
Posts: 0
DragonX2 is on a distinguished road
Send a message via AIM to DragonX2 Send a message via Yahoo to DragonX2
Staff Warping Gani

Ok here is what I got for the NPC

if (playerchats&&startswith(#c,warpto)) {
setani warp1,;
sleep 1;
setani warp2,;
}


It works great it's just that it warps me THAN does the gani, can anyone set it up so that it does the gani before the warp? (I tried putting setani first but it just does the gani everytime I talk which isn't what I want).
__________________
Reply With Quote
  #2  
Old 06-22-2002, 01:40 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
are you using the built in graal warpto
Reply With Quote
  #3  
Old 06-22-2002, 01:42 AM
DragonX2 DragonX2 is offline
Graal2002 Addict
DragonX2's Avatar
Join Date: Dec 2001
Location: NY
Posts: 0
DragonX2 is on a distinguished road
Send a message via AIM to DragonX2 Send a message via Yahoo to DragonX2
Quote:
Originally posted by Python523
are you using the built in graal warpto
It's warpto with an RC.
__________________
Reply With Quote
  #4  
Old 06-22-2002, 11:39 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Quote:
Originally posted by Kaimetsu
Grim Squeaker:
As far as I know it isn't possible to make it work in the way you want, unless you script your own custom warpto.
Which isn't too hard.
If you wanna see great warpto Come see my Teleport I made on Doomsday. =D it's a custom warping system. Yay.



I have trouble getting it so when I warp other players it shows the gani's for them. But it works fine for staff warping themselves.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 06-22-2002, 12:40 PM
Graal518 Graal518 is offline
Foolish Dreamer
Graal518's Avatar
Join Date: Dec 2001
Location: Montana
Posts: 2,140
Graal518 is on a distinguished road
Uh, you forgot something...


if (playerchats&&startswith(#c,warpto)) {
setani warp1,;
sleep 1;
setani warp2,;
}

It should look like this...

if (playerchats&&startswith(warpto,#c)) {
setani warp1,;
sleep 1;
setani warp2,;
}
__________________


Can there be a guiding light I've yet to see? I know my heart should guide me, but...
Reply With Quote
  #6  
Old 06-22-2002, 02:54 PM
Shiftk03- Shiftk03- is offline
I am the trap
Shiftk03-'s Avatar
Join Date: Nov 2001
Location: Dirty South
Posts: 1,688
Shiftk03- will become famous soon enough
Quote:
Originally posted by Graal518


It should look like this...

if (playerchats&&startswith(warpto,#c)) {
setani warp1,;
sleep 1;
setani warp2,;
}
That should do it. By doing that it basically sits the script down and talks to it over tea and krumpets, their conversation consists of "Hey, after the command warpto is said, set the player's gani to this and blah blah blah yakkity smackity."

Also note: In some instances that does not work. Give it a try before deciding your done with the script.
__________________
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:35 PM.


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