Page 1 of 1

Starting Gold

PostPosted: Thu Jan 01, 2004 3:58 am
by dw3rby
How do I change the amount of gold that players start with? I have tried adding goldcoin 700 100, to the starteqp.cfg file, and just about everything else that I can think of. Please help! Thank you ahead of time for helping this little newb.

PostPosted: Thu Jan 01, 2004 1:33 pm
by SDonald
I seem to remember it being automatic - I can't remember if it's defined in the scripts or not.

But anyway, you can change the amount easily enough in the oncreate.src script.
Simply spend all their starting money and put some more in. There was something about the newbie gold that didn't mix with other money. I am sure there is a more elegant way.
eg to start with 200gp for each player:

if(!character.spendgold(100))
Print ("Oops. Could not get rid of newbie gold");
else
CreateItemInBackpack (character, UOBJ_GOLD_COIN, 200);
endif

PostPosted: Fri Jan 02, 2004 3:53 am
by dw3rby
How would I delete the gold from the character? Leave it too the newb, heh.

PostPosted: Fri Jan 02, 2004 1:28 pm
by SDonald
In my script, the line that has:
character.spendgold(100)
spends the starting gold of 100gp.

that script snippet was meant to be all you needed to change the starting money. Just stick it in oncreate.src somewhere.