[Release] Special NPC for 5017 Pvp

09/13/2009 19:25 vipper123#1
Hello elitepvps this is my first release so please dont flame me.

Oh k i coded this npc that gives away free gold cps and exp to a char but i didnt get to test it becouse my dads pc is really gay and wont let me play co or co pservers

oh k search for....

CurrentNPC = NPCID;

and under it add....

if (CurrentNPC == 57210)//Mr.Free
{
SendPacket(General.MyPackets.NPCSay("Hello "+ MyChar.Name +". My name is Mr.Free and i will give you free Cps, Exp and Gold. Would you like some?"));
SendPacket(General.MyPackets.NPCLink("Hell yea. Cps pls!", 1));
SendPacket(General.MyPackets.NPCLink("Hell yea. Exp pls!", 2));
SendPacket(General.MyPackets.NPCLink("Hell yea. Gold pls!", 3));
SendPacket(General.MyPackets.NPCLink("Nah im good.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}

then search for...

if (CurrentNPC == 390)

and under it add...

if (CurrentNPC == 57210)
{
if (Control == 1)
{
if (MyChar.CPs == 0)
{
MyChar.CPs += 100000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
MyChar.Save();
}
}
if (Control == 2)
{
if (MyChar.Exp == 0)
{
MyChar.Exp += 90000000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.Exp));
MyChar.Save();
}
}
if (Control == 3)
{
if (MyChar.Silvers == 100)
{
MyChar.Silvers += 100000;
SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.Silvers));
MyChar.Save();
}
}
}

that all test it out for me and if it worked and it helped press Thanks and if it dont work see if u can fix it or ill try and fix it wen u tell me the error =)

Note.
This is for 5017 server that want to be pvp. i released this to help them out =)

P.S.
The id for Mr.Free is 1320 use that when u swam the npc on server =). Oh and just to tell you i did this in like 20sec and some people will call this a noob release if you do im ok with it i guess =)
09/13/2009 19:32 vipper123#2
woops i posted it in wrong spot........

i have it in right spot now

[Only registered and activated users can see links. Click Here To Register...]
09/14/2009 14:27 tanelipe#3
#Closed