resurrection sickness not occurring

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

Re: resurrection sickness not occurring

Postby dargon » Tue Jun 21, 2016 8:07 am

I have been thinking about how to handle that.. In most cases, at the point of
Code: Select all
public virtual void OnRevive(DOLEvent e, object sender, EventArgs args)
The gameplayer has already "forgotten" who killed him. Your best method to fix this would be createing an (int deathtype), and when the player dies
Code: Select all
if (killer as gameplayer) then {deathtype = 1} else deathtype = 2
then you could add an if on the OnRevive,
Code: Select all
If (deathtype = 1) then { rvrsickness } else pvesickness


Or wait until someone figures out the real issue and not use band-aid code like this would be
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: resurrection sickness not occurring

Postby dargon » Tue Jun 21, 2016 8:08 am

On that note, if you want a band-aid fix like this, i can work it up for you in the morning, but im off to bed. Ill check back here in the morning, as well as try to find a better method of calling resurrection illness
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: resurrection sickness not occurring

Postby ontheDOL » Tue Jun 21, 2016 11:39 am

i'm quite happy with the fix you've already provided to me, but if you with a better method, well thats awesome too :)
i'm sure it will be useful for others too

thanks again bud
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: resurrection sickness not occurring

Postby Graveen » Fri Jul 01, 2016 4:09 pm

Sorry, i have not searched this issue.... Wasn't it working previously ? Not working on Storm ? :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12660
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: resurrection sickness not occurring

Postby Eri » Sat Jul 02, 2016 12:04 am

I just dealt with this issue, no code changes are necessary... you just need to make sure reserved spells are added to spelline.
Eri
DOL Guest
 
Posts: 1
Joined: Thu May 12, 2016 11:29 pm

Re: resurrection sickness not occurring

Postby Fuzzylumpkins » Sat Jul 02, 2016 12:12 am

All you should have to do is make sure that Reserved Spells are added in your spelline table... I had the same issue and that resolved it. If it doesn't work let me know and ill dig a bit deeper, but it is indeed a database issue if your not receiving rez illness. I say this because if you debug the OnRevive event in gameplayer the server is running through it and starting the spell fine, and the spell itself is hardcoded in globalcontants.cs.
Fuzzylumpkins
DOL Initiate
 
Posts: 17
Joined: Sat Mar 28, 2015 10:27 am

Re: resurrection sickness not occurring

Postby ontheDOL » Sat Jul 02, 2016 10:31 am

it would appear to be a database problem, but everything mentioned is there (Reserved Spells in Spellline table) this is all there with the public DB, along with every other global spell line.
Yes Graveen I tested this on Storm with a lvl 10 suiciding to mobs and from fall dmg , no res sick ( mentioned page 1)

/shrug dunno,
only way i got it to work was with dargon's code
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: resurrection sickness not occurring

Postby Fuzzylumpkins » Sat Jul 02, 2016 2:12 pm

it would appear to be a database problem, but everything mentioned is there (Reserved Spells in Spellline table) this is all there with the public DB, along with every other global spell line.
Yes Graveen I tested this on Storm with a lvl 10 suiciding to mobs and from fall dmg , no res sick ( mentioned page 1)

/shrug dunno,
only way i got it to work was with dargon's code
Does your spell in globalconstants.cs look like this?
Code: Select all
public class GlobalSpells { public const string PvERessurectionIllnessSpellType = "PveResurrectionIllness"; private static Spell m_PvERezIllness = null; public static Spell PvERezIllness { get { if (m_PvERezIllness == null) { DBSpell spell = new DBSpell { AllowAdd = false, CastTime = 0, ClientEffect = 2435, Icon = 2435, SpellID = 2435, Name = LanguageMgr.GetTranslation(ServerProperties.Properties.DB_LANGUAGE, "GamePlayer.Spell.ResurrectionIllness"), Range = 0, Value = 30, Target = "Self", Duration = 300, Type = PvERessurectionIllnessSpellType, Description = "The player's effectiveness is greatly reduced due to being recently resurrected." }; m_PvERezIllness = new Spell(spell, 50); } return m_PvERezIllness; } } }
I will say one thing not working with res illness atm is the speed reduction.
Fuzzylumpkins
DOL Initiate
 
Posts: 17
Joined: Sat Mar 28, 2015 10:27 am

Re: resurrection sickness not occurring

Postby ontheDOL » Sun Jul 03, 2016 2:47 am

yes, using standard globalconstants.cs

the modified code still finds the reserved spells line, and works

are you sure it actually works on your shard?
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: resurrection sickness not occurring

Postby Fuzzylumpkins » Fri Jul 08, 2016 2:52 am

Yes positive. There is suppose to be two different types of rez illness though im pretty sure theres RvR illness and PvE illness.
Fuzzylumpkins
DOL Initiate
 
Posts: 17
Joined: Sat Mar 28, 2015 10:27 am

Re: resurrection sickness not occurring

Postby dargon » Fri Jul 08, 2016 5:23 am

I plan to revisit this when I have some time off to look at both making sure the code functions correctly and make sure rvr/pve sickness is determined correctly. Hopefully I will have some free time next weekend to really sit down and check this code work out
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm

Re: resurrection sickness not occurring

Postby Fuzzylumpkins » Sun Jul 10, 2016 10:24 am

A speed decrease is also suppose to be applied for the duration of the illness dargon.
Fuzzylumpkins
DOL Initiate
 
Posts: 17
Joined: Sat Mar 28, 2015 10:27 am

Re: resurrection sickness not occurring

Postby dargon » Sun Jul 10, 2016 10:10 pm

Thanks I'll see into it.
Mannik: Admin of Forsaken Worlds Reborn
dargon
DOL Follower
 
Posts: 451
Joined: Sun Apr 15, 2007 6:55 pm


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest