Starting Gold

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Starting Gold

Postby dw3rby on Thu Jan 01, 2004 3:58 am

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.
dw3rby
Sr. Newbie
 
Posts: 20
Joined: Mon Dec 01, 2003 3:42 am

Postby SDonald on Thu Jan 01, 2004 1:33 pm

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
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia

Postby dw3rby on Fri Jan 02, 2004 3:53 am

How would I delete the gold from the character? Leave it too the newb, heh.
dw3rby
Sr. Newbie
 
Posts: 20
Joined: Mon Dec 01, 2003 3:42 am

Postby SDonald on Fri Jan 02, 2004 1:28 pm

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.
SDonald
Regular Poster
 
Posts: 102
Joined: Fri Oct 11, 2002 7:47 am
Location: Australia


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 0 guests

cron