Ok well I am not really expecting an answer to this but I want my PrizeNPC to send the chars to my website, I am using 5165 and this is all I have for my NPCDialog.cs for now
Code:
#region PrizeNPC
case 47:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("I am PrizeNPC and if you want to buy DragonBalls you can donate to my masters site"));
GC.AddSend(Packets.NPCLink("Okie dokie send me to the site plox.", 1));
GC.AddSend(Packets.NPCLink("Nah. **** him.", 255));
GC.AddSend(Packets.NPCSetFace(30));
GC.AddSend(Packets.NPCFinish());
}
else if (Control == 1)
{
if (GC.MyChar.VipLevel == 0)
}
break;
}
#endregion
Just a comment(not a flame) to the two members that have posted above me, starting a process, in a server base means that you're starting the process on the same machine, not the other way around(to client?)
i remember a packet that calls websites when i was messing around with a packetlogger, but i don't remember its structure, sorry :S.
This is just an example. It can be done in many different ways.
PS: use ie, some ppl dont have firefox.
Its not that your not correct or anything, you definately answered the "how to open a webpage" part of it, however if you code that into a server so that it performs that whenever someone visits and npc, then all you will do is open the website on the SERVER, not the client.
There is a packet you can send which will open a weblink client side, but i dont know it, and im not sure which version it was added in.
Edit: Wow i just reposted what nullable said, so essentially /agree lol
It's a chat packet. You can log it when clicking the HelpDesk NPC at TwinCity. I'm not sure what the type was, you could always loop through all 0x800 to 0x900 possibilities and see which one opens it.
PrizeNPC usage 08/10/2009 - CO2 Private Server - 1 Replies Does anyone even use the PrizeNPC in private servers. I see people posting for help on how to award items, CPs, etc... The great thing about PrizeNPC is it is designed to award almost anything to anyone on the server and be available almost instantly. It isn't that hard to program it into your server. Those using binaries already have the advantage that it is already programmed in.
Back to my question. Anyone using the PrizeNPC?
[Request] PrizeNPC TQ Binarys 03/07/2009 - CO2 Private Server - 1 Replies Does anyone of you have any idea how to make it working?
Or how/where to add Table Entrys for the PrizeNPC?
Would be nice...