The "GetObjectByTag" part should be the player or oPC.
So your script might look like so(This is an example from the Lexicon):
// In the OnUsed of a statue
// Sends the using PC to another (fictional) server
// with player password "mumb0Jumb0", and has
// the PC appear at waypoint "ISK_WP_PORTAL". The
// player will not be notified that they've moved server.
#include "nw_i0_generic"
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC( oPC )) return;
ActivatePortal(oPC, "nwn.iskander.tv:5432", "password", "TAG OF WP", TRUE);
}
Hope that helps.
Modifié par GhostOfGod, 19 février 2011 - 06:04 .