logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
A question of Nwscript

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Wart



Joined: 13 Jun 2012
Posts: 45

PostPosted: Sun Mar 23, 2014 20:13    Post subject: A question of Nwscript Reply with quote

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
View user's profile Send private message
Terra_777



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Mon Mar 24, 2014 10:15    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
Calan



Joined: 23 Mar 2009
Posts: 16

PostPosted: Fri Apr 04, 2014 0:41    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group