Valentine90 Posted September 11, 2012 Author Share Posted September 11, 2012 **Sorry my english**When you attack a monster with magic that affects HP, is sent to the client's vital Monster (HP and MP), but when you heals the HP, MP or MP Affects Monster, the update is not sent to players.**Open Server****1 -** In **modCombat**, look for:```Public Sub SpellNpc_Effect```**2 -** After:``` If increment ThenMapNpc(MapNum).NPC(index).Vital(Vital) = MapNpc(MapNum).NPC(index).Vital(Vital) + DamageIf Spell(SpellNum).Duration > 0 ThenAddHoT_Npc MapNum, index, SpellNum, SpellLevelEnd IfElseIf Not increment ThenMapNpc(MapNum).NPC(index).Vital(Vital) = MapNpc(MapNum).NPC(index).Vital(Vital) - DamageEnd If```**3 -** Add:``` ' send updateSendMapNpcVitals MapNum, index```**Credits:**Valentine Link to comment Share on other sites More sharing options...
hisherwin Posted September 13, 2012 Share Posted September 13, 2012 Spell NPC? Do you mean this tut is on Npc Cast Spell? Well you need a Required tut for that.. Link to comment Share on other sites More sharing options...
Valentine90 Posted September 13, 2012 Author Share Posted September 13, 2012 It's not about the system Spell NPC, the **Sub SpellNpc_Effect** refers to NPC getting an damage from a spell player and not the npc using magic. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now