PDA

View Full Version : Add money to the starting_items table


reddogut
04-22-2009, 06:44 PM
Is there a way to add money to the starting_items table?

trevius
04-22-2009, 07:21 PM
Not in any normal way that I am aware of. If you want players to start with money, you could either start them with an item that they can sell for some starting cash to a nearby merchant, or you could use a slightly more advanced technique with qglobals and have an invisible NPC with a proximity check waiting at the new player's spawn point to give them money when they log in for the first time.

reddogut
04-25-2009, 04:00 PM
Ok, so I wrote a quest to give my players some money.... that was easy. Is there a way to ensure that players can only collect that money once?

trevius
04-25-2009, 05:09 PM
You would just set a quest global (qglobal) on them when you give them the cash and have the quest check for that global when they log in before giving them the plat. If they have the global, it won't give it to them, so you only give it once.

KingMort
04-26-2009, 02:48 PM
INSERT INTO `starting_items` (`id`, `race`, `class`, `deityid`, `zoneid`, `itemid`, `item_charges`, `gm`, `slot`) VALUES
(???, 0, 0, 0, 0, ????, 1, 0, -1);


Ok well this is one way to do what you want... The first ??? you replace with a free ID in this table... the Second set of ???? you replace with a GEM that you make...

Reddogut's Gem of Currency...

Make the sell price on that GEM Exactly what you want .. Then . setup a Player.pl quest in the zone to POP up a box or something and tell them to go and sell the Gem to a merchant....

It's not EXACTLY what you wanted... But it's probably going to be more fun for the players this way anyway..

King Mortenson
Owner - www.raidaddicts.org