[REL] Startower and Heavenfan quest

07/31/2009 10:16 xellios#1
This is for CoEmu v2 and i will be only responding to questions about this quest.
(Custom quest not the original one it looks like it just a small part of it though).

First add in Character.cs
Code:
public int Quest = 0;
Then search for :
Code:
public static void CPs(int value, ClientSocket CSocket)
Under the whole thing you add :
Code:
        public static void Quest(int value, ClientSocket CSocket)
        {
                CSocket.Client.Quest += value;
        }
Npc
Code:
http://www.megaupload.com/?d=WBKWZPB0
oh crap forgot to let you do this too (Search for ):
Code:
                    else
                        IG.ItemID = 1088001;
Paste under it
Code:
                    if (Info.Name == "Birdman")
                    {
                        if (Calculation.PercentSuccess(10))
                            IG.ItemID = 721781;
                        else if (Calculation.PercentSuccess(10))
                            IG.ItemID = 721781;
                    }
Note : U will need the :
int Quest = 0;
and the public static void Quest, for future releases.


EDIT(Forgot this too xD):
Search for:
Code:
public static void SaveCharacter(Character Client)
Paste somewhere in the code
Code:
 `Quest` = " + Client.Quest + ",
And add this
Code:
Client.Quest = Convert.ToInt32(DR["Quest"]);
Under this
Code:
Client.CPs = Convert.ToInt32(DR["CPoints"]);
Add in your database in Characters a new row called Quest with the greatest value there is.

Mhmkay that was it!,
Xellios^!
07/31/2009 11:12 jvt619#2
awesome thanks dude!
07/31/2009 11:26 xellios#3
Heh no problem =) , +Thanks would help me better out^^

BTW:
I didnt test it can someone post if it works? =)
07/31/2009 16:37 danielachraf#4
#Edited
07/31/2009 16:49 xellios#5
Did it work for someone?