View previous topic :: View next topic |
Author |
Message |
Wart
Joined: 13 Jun 2012 Posts: 45
|
Posted: Sun Mar 23, 2014 20:13 Post subject: A question of Nwscript |
|
|
I know it does not concern nwnx but i hope you can help me ...
You know, of course, the ActivatePortal() function. I can add a specific WP to appear in the function parameters and when the Pc appear in the new server it will be teleported to the WP.
The question is: Is there a way to know, in the other server, that WP specified in the ActivatePortal that send that PC into this new server?
I need it in order to know if the Pc had login directly or sent by an ActivatePortal() function. |
|
Back to top |
|
|
Terra_777
Joined: 27 Jun 2008 Posts: 216 Location: Sweden
|
Posted: Mon Mar 24, 2014 10:15 Post subject: |
|
|
Set the destination tag in the database (or as a localstring on an item), fetch the data when logging in if the tag isnt empty sent the PC there and delete the string. ActivatePortal is gimmicky at best. _________________ I dun have any signature, I'm happy anyway. |
|
Back to top |
|
|
Calan
Joined: 23 Mar 2009 Posts: 16
|
Posted: Fri Apr 04, 2014 0:41 Post subject: |
|
|
A local string set on an item in their inventory is probably the easiest. Remember to clear it immediately, or it will still be there when they log out and back in. |
|
Back to top |
|
|
|