server voting for 5165

02/06/2010 02:10 Korvacs#46
Ok so, thanks to tanes post in general to point us in the correct direction, its a simple Chat packet, not string packet, i was misinformed.

The type is 0x839 or 2105 depending on if your storing it as hex or decimal.

To: ALLUSERS
From: SYSTEM
Message: website address here.

Enjoy~
02/06/2010 03:54 .Ocularis#47
<3
02/08/2010 13:18 LegalConquer#48
Nothing on this really helps any voting code lol
coz it all loads on the host pc :P
02/08/2010 13:38 .Ocularis#49
Quote:
Originally Posted by Korvacs View Post
Ok so, thanks to tanes post in general to point us in the correct direction, its a simple Chat packet, not string packet, i was misinformed.

The type is 0x839 or 2105 depending on if your storing it as hex or decimal.

To: ALLUSERS
From: SYSTEM
Message: website address here.

Enjoy~
Code:
Game.World.SendMsgToAll("SYSTEM", "http://www.yahoo.com/", 2011, 0);
Not working. Am I doing something wrong?

Edit:
Ahem, I obviously am. So what am I doing wrong
02/08/2010 15:11 Korvacs#50
Quote:
Originally Posted by Mentalis View Post
Code:
Game.World.SendMsgToAll("SYSTEM", "http://www.yahoo.com/", 2011, 0);
Not working. Am I doing something wrong?

Edit:
Ahem, I obviously am. So what am I doing wrong
Well lets see, your type is wrong obviously :p

2011 != 2105
02/08/2010 17:14 .Ocularis#51
<3 again. I'm on my phone atm, playing golf right now.

I'll try this when I get home and see if it works.

Just in case I'm getting mentally challenged I'm thinking your saying to try this

Code:
Game.World.SendMsgToAll("SYSTEM", "http://www.yahoo.com/", 2105, 0);
02/08/2010 17:35 Korvacs#52
Correct.
06/14/2010 23:22 pintser#53
Code:
 #region Vote
                            case 3016555:
                                {
                                    if ([COLOR="Red"]option[/COLOR] == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Would you like to vote for CrankCo?"));
                                        GC.AddSend(Packets.NPCLink("yes afcourse", 1));
                                        GC.AddSend(Packets.NPCLink("uhh na, im lame!", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());

                                    }
                                    if ([COLOR="red"]option[/COLOR] == 1)
                                    {
                                        if (GC.MyChar.VoteUsed == 0)
                                        {
                                            GC.MyChar.VoteUsed++;
                                            GC.MyChar.CPs += 5000;
                                            Game.World.SendMsgToAll("SYSTEM", "http://www.xtremetop100.com/in.php?site=1132270770", 2105, 0);
                                            Game.World.SendMsgToAll("SYSTEM", " Congratulation " + GC.MyChar.Name + " recieve 5000 cps upon voting the server ", 2011, 0);

                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("you can vote only once a day"));
                                            GC.AddSend(Packets.NPCLink("I see", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion


there ya go :) the whole thingy*(btw this is my mysql version)
chnage it (if needed)so u can use flatfiled:)..
Red marked will change in: Control
for the most of you.
06/15/2010 04:18 AngeaL™#54
Nice Release Man!!!!!!!
06/28/2010 18:32 ftp4life#55
why is it when someone uses this npc it send the Message to everyone's pc, do you need to change this
Code:
Game.World.SendMsgToAll("SYSTEM", "http://www.xtremetop100.com/in.php?site=1132306914", 2105, 0);
            Game.World.SendMsgToAll("SYSTEM", " Congratulations " + GC.MyChar.Name + " recieved 50000 cps for voting ", 2011, 0);
To this??
Code:
Game.World.CharacterFromName("SYSTEM", "http://www.xtremetop100.com/in.php?site=1132306914", 2105, 0);
            Game.World.SendMsgToAll("SYSTEM", " Congratulations " + GC.MyChar.Name + " recieved 50000 cps for voting ", 2011, 0);
06/28/2010 18:57 pintser#56
ty
04/16/2011 14:38 axel0899#57
Where is character.cs?:|