Hey, Ive been trying to change what an NPC's is saying and what it gives, so I go to NpcDialog.cs with Visual C and changed from;
TO;
Then I save the .cs file and starting the server, but the NPC is saying the same thing, and gives the same amount of CPS for the silver, that will say 5k cps for 500k silver.
Is there another file I need to edit?
| #region CPAdmin |
| case 1234: |
| { |
| if (option == 0) |
| { |
| OptionText("Hello, I can trade you 215 CPs for a DragonBall and 2150 CPs for a DBScroll.", GC); |
| OptionLink("Here, take my DragonBall!", 1, GC); |
| OptionLink("Here, take my DBScroll!", 2, GC); |
| OptionLink("1kk silver for (5k cps)", 5, GC); |
| OptionLink("I'm too poor..., Bye.", 255, GC); |
| GC.AddSend(Packets.NPCSetFace(N.Avatar)); |
| GC.AddSend(Packets.NPCFinish()); |
| } |
| else if (option == 5) |
| { |
| if (GC.MyChar.Silvers >= 500000) |
| { |
| GC.MyChar.Silvers -= 500000; |
| GC.MyChar.CPs += 5000; |
| GC.AddSend(Packets.NPCSay("You have got 10k cps say thanks to Conquer-Sx")); |
| GC.AddSend(Packets.NPCLink("Thanks.", 255)); |
| GC.AddSend(Packets.NPCSetFace(N.Avatar)); |
| GC.AddSend(Packets.NPCFinish()); |
TO;
| #region CPAdmin |
| case 1234: |
| { |
| if (option == 0) |
| { |
| OptionText("Hello, I can trade you 215 CPs for a DragonBall and 2150 CPs for a DBScroll.", GC); |
| OptionLink("Here, take my DragonBall!", 1, GC); |
| OptionLink("Here, take my DBScroll!", 2, GC); |
| OptionLink("1kk silver for (10k cps)", 5, GC); |
| OptionLink("I'm too poor..., Bye.", 255, GC); |
| GC.AddSend(Packets.NPCSetFace(N.Avatar)); |
| GC.AddSend(Packets.NPCFinish()); |
| } |
| else if (option == 5) |
| { |
| if (GC.MyChar.Silvers >= 1000000) |
| { |
| GC.MyChar.Silvers -= 1000000; |
| GC.MyChar.CPs += 10000; |
| GC.AddSend(Packets.NPCSay("You have got 10k cps say thanks to Conquer-Sx")); |
| GC.AddSend(Packets.NPCLink("Thanks.", 255)); |
| GC.AddSend(Packets.NPCSetFace(N.Avatar)); |
| GC.AddSend(Packets.NPCFinish()); |
Then I save the .cs file and starting the server, but the NPC is saying the same thing, and gives the same amount of CPS for the silver, that will say 5k cps for 500k silver.
Is there another file I need to edit?