Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Staff Warping Gani (https://forums.graalonline.com/forums/showthread.php?t=32060)

DragonX2 06-22-2002 01:37 AM

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).

Python523 06-22-2002 01:40 AM

are you using the built in graal warpto

DragonX2 06-22-2002 01:42 AM

Quote:

Originally posted by Python523
are you using the built in graal warpto
It's warpto with an RC.

adam 06-22-2002 11:39 AM

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.

Graal518 06-22-2002 12:40 PM

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,;
}

Shiftk03- 06-22-2002 02:54 PM

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.


All times are GMT +2. The time now is 06:42 PM.

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