Loads of changes with rev 154 through 157 (uploaded in several chunks)
Here is what has been done.
AIP is expanded and fixed in some places. We now parse NPC AIP scripts too. You might see some strange shouted messages from NPCs now and then.
New ltbstring.sql database file included. Make sure you install this to your DB or else the server will crash.
This table provides all the LTB strings for the NPCs to shout out.
I couldn't be bothered to figure out the code to load the stuff directly from the ltb files. This was just way easier.
Many of the use_items have been recoded and re-routed through skills code.
Fireworks now work properly and also give AOE buffs to people around you.
Dance scroll have also been re-routed through skills. They now regenerate Stamina to everyone in AOE range.
Charm scrolls fixed up too. Also includes some items that were being missed out before.
Buff.cpp has been fixed up (found some errors)
Now allows status only debuffs to function correctly. Should affect AOE buffs too. need more players to test this though. All i can be certain of is that an AOE buff definitely affects the caster and since it is looping through all players/monsters in the area, it pretty much has to be working. Feedback would be useful here though.
Loads of tidying up of code to make it fit a specific pattern of indents. (my own preference obviously )
Either way it will be way more readable if it's all done in the same way.
Rewrote the code for drops.
Dropped type 2 (side drops) as AIP is now handling that quite successfully.
Modified teh conditions for drops so that they are now ANDed together rather than ORed. A value of zero in any column is considered TRUE for teh sake of logic.
example
make a drop as follows
minlevel = 0 (TRUE for all)
maxlevel = 0 (TRUE for all)
Mob = 1 (TRUE for mini jelly bean)
Map = 22 (TRUE for Adventurers plains)
prob = whatever
This drop entry will potentially generate a drop ONLY from a mini jelly bean AND it must be in the adventurers plain
In the old system this drop would fall from either...
a MJB anywhere
OR
any monster in Adventurers Plains
This is in response to a discussion with Ghost_Dragon who came up with some interesting ideas.
The drop system now also supports boosted rates for players using skills such as the Dealer "Stockpile" skill.
it is possible that i may have missed something while uploading this rather large amount of changes so please let me know if you have any problems compiling.