PDA

View Full Version : Linking Scripts across Zones


Figback65
09-07-2013, 10:55 AM
Is it possible to link scripts across zone lines? I coulda swore I found a post in the past about it but I have been searching for days now and cannot find it again.

If it is possible.....

Is it through signals? Any possible quick example or link to a post about it?
How would you call the signal as well?

I use this to signal in same zone. Of course that's easy though, calling the npcID, the signal # and a wait time.
quest::signalwith(120012,1,1);


Thanks for the help guys!

sorvani
09-07-2013, 09:53 PM
set a qglobal and then have the NPC in the other zone check it.

Figback65
09-08-2013, 08:21 AM
awesome! Good idea! I imagine I would need a timer running the entire time as well, waiting for the check of qglobal in the next zone?

sorvani
09-08-2013, 08:48 AM
Depends on how real time you need to have it happen. You can have an in via PC that spawns and checks it in the sawn event, then depops with re spawn timer set to say 5 minutes.

Figback65
09-08-2013, 09:35 AM
What I am trying to accomplish is a moving zone NPC. So I would need him to walk to a waypoint, despawn, set global, next zone line script picks up the global when its made, spawns him and sets him on a path to the next zone line and repeat.

joligario
09-08-2013, 10:25 AM
You should read the conversation regarding Freeport/Kunark boats. Same concept and same issues (i.e. no PCs in other zone the no movement as zone is asleep)

Figback65
09-08-2013, 11:14 AM
Excellent, will look into that, didn't think about boats, they definitely chain zones.

Thank you all!