Skip to content

GetDomain()

The following code prints out "0" on a test run. Where oPC is the current PC object.
The test PC is a lvl 1 fighter from the server vault with no domains.
sAbs = IntToString(GetDomain(oPC, 1, GetClassByPosition(1, oPC)));
 SendMessageToPC(oPC, sAbs);


The second domain slot in the first class slot returns "1". Whereas all other combinations return "-1", as they should.

For my understanding "-1" should be the result in the first two cases, too.

What am I missing?

(All variables are properly declared elsewhere)

Comments

Sign In or Register to comment.