HELP using acct.move_char

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 098.

Moderator: POL Developer

Post Reply
User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

HELP using acct.move_char

Post by OldnGrey » Sat Aug 15, 2009 10:47 pm

I am running some tests on the account method .move_char, but I cannot see how it could work properly.
Logically to make this work you need
source account,
source index,
destination account,
destination index.

The actual method and parameters are:
Account.move_char(string destacctname, integer slot);

In other words there is only one index..... and it doesn't say whether it's source or destination.

Can I have a fuller explanation of this please?
My tests show that it is the source index, not the destination index. In which case how do you tell it where to put it? Does it just take the lowest available slot 0 - 4?
The core-changes says "you can use it to flip chars on same account too" but then I have to ask what is it doing?

Zgryt
New User
Posts: 19
Joined: Wed Sep 20, 2006 11:53 am

Re: HELP using acct.move_char

Post by Zgryt » Thu Sep 03, 2009 1:51 pm

In my opinion its source slot.
account.move_char(destination_account, source slot);

I think that it will put it on first free slot on destination account, in example:
Destination account:
- Franek Koleczka (1)
- Empty slot (2)
- Zbyszek Zapalniczka (3)
- Zenio Smietanka (4)

acc.move_char(acc, 4);

Destination account:
- Franek Koleczka (1)
- Zenio Smietanka (2)
- Zbyszek Zapalniczka (3)

I was useing this function, but long time ago and i dont left any notes in my transfer script so i can be wrong.

User avatar
OldnGrey
POL Expert
Posts: 657
Joined: Sat Feb 04, 2006 6:26 pm

Re: HELP using acct.move_char

Post by OldnGrey » Thu Sep 03, 2009 9:45 pm

I am using the command regularly and it does sent the character to the next available slot.

Post Reply