Hello all sorry for the post but i have been reading through the comments on redux and i found code for cp admin but i cant get him to load for some reason
i went into Redux -> npcs -> created a new file [2071]CPAdmin.cs
copied the code
but it comes up could not load npc script for npc ID: 2071
is there something i am missing?
i went into Redux -> npcs -> created a new file [2071]CPAdmin.cs
copied the code
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Redux.Packets.Game;
namespace Redux.Npcs
{
/// <summary>
/// Handles NPC usage for [4450] Market Controller
/// </summary>
public class NPC_2071 : INpc
{
public NPC_2071(Game_Server.Player _client)
: base(_client)
{
ID = 2071;
Face = 54;
}
public override void Run(Game_Server.Player _client, ushort _linkback)
{
Responses = new List<NpcDialogPacket>();
AddAvatar();
switch (_linkback)
{
case 0:
AddText("Hello, need to exchange those DragonBalls(220 CPs) or DBScrolls(2200) to CPs to save some space?");
AddText("Witch would you like to exchange?");
AddOption("An DragonBall only .", 1);
AddOption("An DBScroll.", 2);
AddOption("No. I shall stay here.", 255);
break;
case 1:
if (_client.HasItem(1088000))
{
_client.DeleteItem(1088000);
_client.CP += 220;
AddText("There you go.Check out in your inventory!");
AddOption("Thanks!", 255);
}
else
{
AddText("You don't have any DragonBalls.");
AddOption("Ok! .", 255);
}
break;
case 2:
if (_client.HasItem(720028))
{
_client.DeleteItem(720028);
_client.CP += 2200;
AddText("There you go.Check out in your inventory!");
AddOption("Thanks!", 255);
}
else
{
AddText("You don't have any DBScrolls.");
AddOption("Ok! .", 255);
}
break;
}
AddFinish();
Send();
}
}
}
is there something i am missing?