From 8d356dbe3f056474700fcbdd563d8ea437b1464e Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 2 Nov 2008 00:19:12 +0000 Subject: * Minor cleanup in login server * Char server now records client version and reports it to map server * Map server will now report all skills (even ones with dangerous indices) for client version 1 and above * Use status change val1 (instead of val2) index for speed potions, so that they can be triggered more easily from within scripts * Item database now also keeps track of the effect that items have on the spower stat * spower is now based on level + int*2 + modifier (see last point) * Minor bugfixes in support functionality for the SLang interpreter - Do not restart the map server without also restarting the char server, as the interserver protocol has changed slightly! (patch by fate) --- src/map/map.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index dfed77f..bc34d7c 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -131,6 +131,8 @@ struct quick_regeneration { // [Fate] unsigned char tickdelay; // number of ticks to next update }; +#define VERSION_2_SKILLINFO 0x02 // client supports full skillinfo blocks + struct map_session_data { struct block_list bl; struct { @@ -173,6 +175,7 @@ struct map_session_data { } special_state; int char_id, login_id1, login_id2, sex; int packet_ver; // 5: old, 6: 7july04, 7: 13july04, 8: 26july04, 9: 9aug04/16aug04/17aug04, 10: 6sept04 (by [Yor]) + unsigned char tmw_version; // tmw client version struct mmo_charstatus status; struct item_data *inventory_data[MAX_INVENTORY]; short equip_index[11]; @@ -214,6 +217,8 @@ struct map_session_data { short attack_spell_charges; // [Fate] Remaining number of charges for the attack spell short attack_spell_delay; // [Fate] ms delay after spell attack short attack_spell_range; // [Fate] spell range + short spellpower_bonus_target, spellpower_bonus_current; // [Fate] Spellpower boni. _current is the active one. + //_current slowly approximates _target, and _target is determined by equipment. short attackrange,attackrange_; int skilltimer; -- cgit v1.2.3-60-g2f50