|
You last visited: Today at 12:45
Advertisement
[rel]House ! Is Not 100% !
Discussion on [rel]House ! Is Not 100% ! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
12/09/2009, 14:11
|
#1
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
[rel]House ! Is Not 100% !
Hey, today I will start to code house ! in 5165
Let's GO !!
In Character.cs
Code:
public int House = 0;
Code:
#region House Agent !!
case 30157:
{
if (Control == 0)
{
if (GC.MyChar.House == 0)
{
GC.AddSend(Packets.NPCSay("I am the houseagent in Twin City.If you want to buy a house,you must have my authorization."));
GC.AddSend(Packets.NPCLink("Buy a house.", 1));
GC.AddSend(Packets.NPCLink("Upgrade my house.", 2));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 1)
{
if (GC.MyChar.House == 0)
{
GC.AddSend(Packets.NPCSay("To buy one of my find houses you must pay me 10,000 CPs for construction causes."));
GC.AddSend(Packets.NPCLink("Ok!", 3));
GC.AddSend(Packets.NPCLink("Too pricey nevermind!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 2)
{
if (GC.MyChar.House == 0)
{
GC.AddSend(Packets.NPCSay("Sir you do not have a house! You should make an effort to buy one first!"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 3)
{
if (GC.MyChar.CPs >= 5000)
{
GC.MyChar.House = 1;
GC.MyChar.CPs -= 5000;
GC.MyChar.House++;
GC.AddSend(Packets.NPCSay("Yes, Here we go! Not lake front property but still very fine I shall say so myself!"));
GC.AddSend(Packets.NPCLink("Thanks!I was hoping for a bigger yard!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sir you do not have enough money. Please not our workers put in hours for this house!"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 0)
{
if (GC.MyChar.House == 1)
{
GC.AddSend(Packets.NPCSay("I am the houseagent in Twin City.If you want to buy a house,you must have my authorization."));
GC.AddSend(Packets.NPCLink("Buy a house.", 5));
GC.AddSend(Packets.NPCLink("Upgrade my house.", 6));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 5)
{
if (GC.MyChar.House == 1)
{
GC.AddSend(Packets.NPCSay("Sir according to my clipboard " + GC.MyChar.Name + " has already bought a house from me!"));
GC.AddSend(Packets.NPCLink("Sorry. Thought I could get another one hehe..", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 6)
{
if (GC.MyChar.House == 1)
{
GC.AddSend(Packets.NPCSay("Ahh yes, when you first bought a house from me you said I wish there was a bigger yard. Am I correct?"));
GC.AddSend(Packets.NPCSay("Well sir, I got news for you! Now I can upgrade your house to have a yard for 5,000 CPs, Deal?"));
GC.AddSend(Packets.NPCLink("Yes you got yourself a deal sir!", 7));
GC.AddSend(Packets.NPCLink("No thanks.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 7)
{
if (GC.MyChar.CPs >= 5000)
{
GC.MyChar.House = 1;
GC.MyChar.CPs -= 5000;
GC.AddSend(Packets.NPCSay("Ahh yes beautiful! Isn't it? Magnifico! Have fun sir!"));
GC.AddSend(Packets.NPCLink("Still no lake...", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else
{
GC.AddSend(Packets.NPCSay("Sir you do not have enough money!"));
GC.AddSend(Packets.NPCLink("Sorry.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
if (Control == 0)
{
if (GC.MyChar.House == 2)
{
GC.AddSend(Packets.NPCSay("I am the houseagent in Twin City.If you want to buy a house,you must have my authorization."));
GC.AddSend(Packets.NPCLink("Buy a house.", 8));
GC.AddSend(Packets.NPCLink("Upgrade my house.", 9 ));
GC.AddSend(Packets.NPCLink("Just passing by.", 255 ));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
else if (Control == 8)
{
GC.AddSend(Packets.NPCSay("Sir according to my clipboard " + GC.MyChar.Name + " has already bought a house from me!"));
GC.AddSend(Packets.NPCLink("Sorry. Thought I could get another one hehe..", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 9)
{
GC.AddSend(Packets.NPCSay("Sir according to my clipboard " + GC.MyChar.Name + " has already upgraded his house!"));
GC.AddSend(Packets.NPCLink("Sorry. Thought I could get that lakefront property I wanted hehe..", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
I whan't help who know to code it full.. repost it here !
NEW UPDATE !
|
|
|
12/09/2009, 14:25
|
#2
|
elite*gold: 0
Join Date: Aug 2009
Posts: 39
Received Thanks: 2
|
awwwwwwww that cool Tweety thx for help
|
|
|
12/09/2009, 15:22
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
thanks but not is finish !
|
|
|
12/09/2009, 15:37
|
#4
|
elite*gold: 0
Join Date: Aug 2009
Posts: 39
Received Thanks: 2
|
yep it desnt work
|
|
|
12/09/2009, 16:21
|
#5
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
yep,anyone know to finish it ..plz help me !
|
|
|
12/09/2009, 16:35
|
#6
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
#request change title to "[Release]HouseAgent for 5165"
Or similar.
|
|
|
12/09/2009, 17:22
|
#7
|
elite*gold: 0
Join Date: Mar 2008
Posts: 268
Received Thanks: 25
|
Quote:
Originally Posted by Smythe94
#request change title to "[Release]HouseAgent for 5165"
Or similar.
|
There is no need to be fussy about the title...
|
|
|
12/09/2009, 19:09
|
#8
|
elite*gold: 0
Join Date: Nov 2009
Posts: 754
Received Thanks: 544
|
There should be much and much more.
For example, basic structure and everybody having its on house.
|
|
|
12/09/2009, 21:26
|
#9
|
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 140
|
In order to finish it you have to know how Dynamic Maps work and how to create the dynamic map and save the map with the furniture on it. Most people on Epvp don't have a clue on how to do that so don't waste the time.
|
|
|
12/10/2009, 06:07
|
#10
|
elite*gold: 0
Join Date: Apr 2006
Posts: 532
Received Thanks: 66
|
#region HouseAdmin
case 30156:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Want to go home?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("You do not have a house yet.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
GC.MyChar.Teleport(1098, 035, 035);
break;
}
#endregion
This will actually get you into the house BUT it is not the upgraded house and it is EVERYBODIES house >.< Also it does not feature spouses house either. Ok I am far from a coder etc but sometimes I can look at things and work with it. Can anybody tell me what is actually wrong with this because it is not throwing errors BUT it has thrown a warning "unreachable code detected" This is what I got
#region HouseAdmin
case 30156:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Want to go home?"));
GC.AddSend(Packets.NPCLink("Yes.", 1));
GC.AddSend(Packets.NPCLink("Not just yet.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
GC.MyChar.Teleport(1098, 035, 035);
break;
if (GC.MyChar.House == 0)
{
GC.AddSend(Packets.NPCSay("I'm sorry you do not have a house."));
GC.AddSend(Packets.NPCLink("Okay, I will be back when I have bought one.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
break;
}
#endregion
|
|
|
12/10/2009, 09:19
|
#11
|
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
|
Rofl only few can get Houses done really , unless they got an really good idea on how dyna maps look like.
|
|
|
12/10/2009, 12:01
|
#12
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
lol !!:| nobody ..not helping me ! THANKS guys ! for nothing
|
|
|
12/10/2009, 14:02
|
#13
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
submapID
|
|
|
12/10/2009, 22:09
|
#14
|
elite*gold: 0
Join Date: Apr 2006
Posts: 532
Received Thanks: 66
|
Sorry Tweety I can only try to have a look at things and hope that I might be able to fix things. But I am not in knowledge of any comp languages I look at lots of different posts and use information from other ideas to see if I can make things work.
|
|
|
12/11/2009, 11:05
|
#15
|
elite*gold: 0
Join Date: Nov 2009
Posts: 380
Received Thanks: 58
|
k thx
|
|
|
|
|
Similar Threads
|
Dr. House
04/24/2011 - Off Topic - 29 Replies
wollte mal fragen was ihr so von dr. house haltet..ich persöhnlich find die serie total geil und amüsier mich jedesmal herrlich über den schwarzen humor und die trockene art und weise wie er seine patienten abserviert
was meint ihr?
|
[help] House problem *make a seperate house for each character*
06/06/2009 - CO2 Private Server - 2 Replies
Ok so I made a house code like you would see in another post but they way I made it seems like everyone would be teleported to the same house. Here's an example of it.
Simple house...
if (MyChar.InventoryContains(721170, 1))
{
MyChar.Teleport(1098, 32, 40);
}
The way it's put you can see it looks like everyone would be teleported to the same place. I haven't tried to see...
|
house
02/09/2006 - Conquer Online 2 - 0 Replies
hey i waswonderen if someone can make a bot to get u a house perment and a house upgrade ceretficate
|
House!
12/24/2005 - Conquer Online 2 - 4 Replies
Ive upgraded my house but now, a bad thing happend my xmass tree is like in the walls is there a way to delete/move ur tree and wreath's?
|
Hit someone in house
09/26/2005 - Conquer Online 2 - 11 Replies
I would like to hit someone (weapon or spell) in my house to lvl up my skills and spells.
This could be a better way than tg :D How can I do that?
|
All times are GMT +2. The time now is 12:45.
|
|