[CoV2] Question/Problem regarding Heaven's Blessing

02/09/2009 11:55 Lauratje#1
Well this is one of the problems i haven't been able to solve so far.

Heaven's Blessing is working, PrayingStones add Blessing to your char, but it does not save it to the database. So when players logout and log back in they don't have their HB anymore.

Anyone familiar with this source and knows what might be causing it? I did not adjust or change anything in the Heaven's Blessing code myself, in case you're wondering.
02/09/2009 13:07 PeTe Ninja#2
you might want to make sure its got SAVE HB in there in the database...
02/09/2009 14:08 damianpesta#3
I know I know! The First person that logs Have to relog to see the HB , every next peson that logs Wont have to do it. Its little bug?But dont bother fIxing it...
02/09/2009 21:13 PeTe Ninja#4
use diff source... COV2 is messeed up

to xmasterxxx or w.e .... make sure every ( smal ) bug is fixed, doesnt have to be perfect even though its lotf, but enough for the edits you made to work
02/14/2009 19:01 ptifou08#5
i need create guild war in Co v2 because doesnt exist
02/14/2009 19:32 yuko#6
this is a code used in the coV2 source - code for a bless stone -
as you shoulde have seen it doesn't say it has to save the time
this is the same code as kinshi or emme released
exept that there is saveHB(); missing.
as far as i search in that coV2 source saveHB or anything alike isn't added.
try to add it by following one of those tutorials.
Code:
if (!Blessed)
{
                    HBStart = DateTime.Now; //start time 
                    HBEnd = DateTime.Now.AddDays(3);//end time
                    WhichBless = 1;
                    Blessed = true;//bless is active
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 18, (3 * 24 * 60 * 60)));//send packet with the correct info about the time to the client
                    MyClient.SendPacket(General.MyPackets.Vital(UID, 26, GetStat()));
                    World.UpdateSpawn(this);
                    RemoveItem(ItemUID);
                    MyClient.SendPacket(General.MyPackets.String(UID, 10, "zf2-e128"));
                }