|
You last visited: Today at 22:02
Advertisement
How do I add PrizeNPC?
Discussion on How do I add PrizeNPC? within the CO2 Private Server forum part of the Conquer Online 2 category.
01/29/2010, 16:24
|
#1
|
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
|
How do I add PrizeNPC?
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
|
|
|
01/29/2010, 17:20
|
#2
|
elite*gold: 111
Join Date: Feb 2008
Posts: 2,161
Received Thanks: 646
|
Process.Start("IExplore.exe", "http://ursitehere.com");
This is just an example. It can be done in many different ways.
PS: use ie, some ppl dont have firefox.
|
|
|
01/29/2010, 17:21
|
#3
|
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
|
you wanna is a code when player click there open your website rigth?
try and this
if (GC.MyChar.VipLevel == 0)
System.Diagnostics.Process.Start("iexplore.exe", "your website");
i think will work... i get that in vote npc
|
|
|
01/29/2010, 19:57
|
#4
|
elite*gold: 0
Join Date: Nov 2009
Posts: 390
Received Thanks: 321
|
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.
|
|
|
01/29/2010, 23:27
|
#5
|
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
|
Quote:
Originally Posted by ~*NewDuuDe*~
Process.Start("IExplore.exe", "http://ursitehere.com");
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
|
|
|
01/30/2010, 14:35
|
#6
|
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
|
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.
|
|
|
01/30/2010, 16:35
|
#7
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Where is this HelpDesk NPC then?
I've never heard of it before.
|
|
|
01/30/2010, 17:34
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
|
Quote:
Originally Posted by Kiyono
Where is this HelpDesk NPC then?
I've never heard of it before.
|
Correct me if I'm wrong but it is in the middle of TC in real co.
|
|
|
01/30/2010, 18:58
|
#9
|
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
|
That's correct. I'm not sure if the NPC was actually named HelpDesk.
|
|
|
01/31/2010, 00:02
|
#10
|
elite*gold: 0
Join Date: Apr 2006
Posts: 534
Received Thanks: 66
|
Sorry tanelipe I really appreciate the help but I don`t understand what you mean? Ok so a quick look in the client and I found this?
Code:
[NpcType154]
Name=HelpDesk
SimpleObjID=1
StandByMotion=999001100
BlazeMotion=999001190
RestMotion=999001101
Effect=none
ASB=5
ADB=6
FixDir=0
|
|
|
Similar Threads
|
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...
|
All times are GMT +1. The time now is 22:03.
|
|