Page 1 of 1

character.forcelogin()

Posted: Thu Sep 28, 2006 6:54 am
by Lagoon
Forces the login of a character who isn't logged in. This means the character appears in game, but not exactly as if it were logged in (in fact there is no client attached to it), but in the same state as when the client logs off but the logofftest.ecl returns a nonzero value and the character stays in game for some time

Posted: Mon Oct 02, 2006 5:56 pm
by Yukiko
Sounds interesting Lagoon. Why would this be a good feature? Whatcha thinking of using it for?

Posted: Mon Oct 02, 2006 5:57 pm
by MuadDib
Offline mobiles, when moved, can be seen temporarily also

Posted: Tue Oct 03, 2006 4:35 am
by Lagoon
Oh, interesting, I'll try that ^_^
Yukiko, since in my shard characters can be created only by the staff, I plan to give them a command which creates and account with an empty character and makes him apper in front of the staff member. Then the command will open a gump where the staff member can set all the character details: gender, race, skin color, hair style and color, beard style and color, equipment... and the changes will be shown in realtime on the character in front of the staff member.

Posted: Tue Oct 03, 2006 7:04 am
by Marilla
Yup... so you could just have that script do a 'teleport in place' each time you change something (that is, move them to the same place they are already standing on). Should work :)

I've noticed that you can see a character in-game a bit when moved while offline; We have a web page that used to be used to fix 'black hole' lag when it happened... people could use it to mvoe their character to a safe location. When people did that, anyone at the destination would see them appear, momentarily.

Posted: Wed Oct 18, 2006 3:16 am
by Lagoon
Are you sure it works in pol097 latest beta? I tryed to move an offline character... he moved, but didn't appear in game.

Code: Select all

program textcmd_teleoff(pc)
  var serial := 0xd0;
  var pc_2 := SystemFindObjectBySerial(serial, SYSFIND_SEARCH_OFFLINE_MOBILES);
  if(pc_2)
    MoveObjectToLocation(pc_2, pc_2.x + 1, pc_2.y, pc_2.z, pc_2.realm, MOVEOBJECT_FORCELOCATION);
  endif
endprogram
Am I doing anything wrong?

Posted: Tue Oct 24, 2006 4:59 am
by Lagoon
Any hint? :roll: