Thanks for your reply.
Ok I have the Client and I have the DB. Do I put my IP in them both?
Ok I have the Client and I have the DB. Do I put my IP in them both?
else if (Control == 30)
{
if (GC.MyChar.DoubleexpUsed == 0)
{
GC.MyChar.DoubleEXPUsed = DateTime.Now;
GC.MyChar.DoubleexpUsed++;
GC.MyChar.DoubleExp = true;
GC.MyChar.DoubleExpLeft = 3600;
GC.AddSend(Packets.Status(GC.MyChar.EntityID, Status.DoubleExpTime, (ulong)GC.MyChar.DoubleExpLeft));
}
}
else
{
if (GC.MyChar.DoubleexpUsed == 1)
{
GC.AddSend(Packets.NPCLink("You`ve already had double exp today!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
Your indentation is all wrong...Quote:
I`m not sure about netgear routers so I can`t really help to much :( If you have virtual server in the router then yes use it.
Ok I got it so that you can only use DoubleExp once, I need to add more stuff so that it saves the info etc. The other thing is I want it to tell the player that they have already had double exp but I am a little stuck on this?
Code:else if (Control == 30) { if (GC.MyChar.DoubleexpUsed == 0) { GC.MyChar.DoubleEXPUsed = DateTime.Now; GC.MyChar.DoubleexpUsed++; GC.MyChar.DoubleExp = true; GC.MyChar.DoubleExpLeft = 3600; GC.AddSend(Packets.Status(GC.MyChar.EntityID, Status.DoubleExpTime, (ulong)GC.MyChar.DoubleExpLeft)); } } else { if (GC.MyChar.DoubleexpUsed == 1) { GC.AddSend(Packets.NPCLink("You`ve already had double exp today!", 255)); GC.AddSend(Packets.NPCSetFace(N.Avatar)); GC.AddSend(Packets.NPCFinish()); } } break; }
else if (Control == 30)
if (GC.MyChar.DoubleexpUsed == 0)
{
GC.MyChar.DoubleEXPUsed = DateTime.Now;
GC.MyChar.DoubleexpUsed++;
GC.MyChar.DoubleExp = true;
GC.MyChar.DoubleExpLeft = 3600;
GC.AddSend(Packets.Status(GC.MyChar.EntityID, Status.DoubleExpTime, (ulong)GC.MyChar.DoubleExpLeft));
}
else//why do another else if? you just wanna know if it's > 0
{
GC.AddSend(Packets.NPCLink("You`ve already had double exp today!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
What IP keeps changing?Quote:
Hello, I was wondering if anyone could be of help to me. This is about Port Forwarding so I can play my Private Server Hamachi Free. The problem is that my Router is always changing it's IP, so I have no static IP. I do not have a Static IP option in the Routers Settings. How can I get around this, is there anyway I can download a program that works like Port Forwarding.
Extra Information: My Router is a NetGear DG834GT running with Internet Service Provider "SKY Broadband" (UK)
Would be much appreciated if you could help, thanks.
Thanks for your reply.Quote:
What IP keeps changing?
Your GlobalIP (85.174.276.274) < Example
Or your InternalIP (192.168.1.101)
If it is the first one there is nothing to be done (as far as I am aware)
You could phone Sky and talk to them about it see what they say.
If it is your "InternalIP" then simply set an IP reservation in your routers settings this should sort out your problem
My girlfriend has just logged into my game server but I can't and I'm using the same server.dat also the same client.Quote:
If youadd127.0.0.1 it wont work
I think the problem is with Sky because they block most ports for security so your best bet would be to phone them and ask them if they can unblock the ports you need
You would need to put your ExternalIP into everywhere that you need to put an IP
Hmm is your girlfriend accessing the server from a different network?Quote:
My girlfriend has just logged into my game server but I can't and I'm using the same server.dat also the same client.
what is goin on lol.