the problem is when i click on the upgrade button, nothing happens.
This is the npc:
PHP Code:
#region Bless
case 35015:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello there mate. I am here to add to your item a very precious element that will make your item more powerful and also more expensive. Each bless point ( - ) gives you 1% less damage. For -1 you need five Super tortoise gems(STG) or you can gain in through first reborn. For -3 you need one STGs, for -5 you need three STGs and for -7 you five STGs. Do you want to go on?");
dialog.Option("Okay let's roll.", 1);
dialog.Option("It's too expensive.", 255);
dialog.Send();
break;
}
#region Bless NPc]
case 1:
{
Network.GamePackets.Data Data = new Network.GamePackets.Data(true);
Data.UID = client.Entity.UID;
Data.ID = 126;
Data.dwParam = 426;
Data.wParam1 = client.Entity.X;
Data.wParam2 = client.Entity.Y;
client.Send(Data);
break;
}
#endregion Bless NPc]
}
break;
}
#endregion Bless
and this is the packet (data.cs)
PHP Code:
using System;
namespace Conquer_Online_Server.Network.GamePackets
{
public class Data : Writer, Interfaces.IPacket
{
public class CustomCommands
{
public const ushort
ExitQuestion = 1,
Minimize = 2,
ShowReviveButton = 1053,
FlowerPointer = 1067,
Enchant = 1091,
LoginScreen = 1153,
SelectRecipiet = 30,
JoinGuild = 34,
MakeFriend = 38,
ChatWhisper = 40,
CloseClient = 43,
HotKey = 53,
Furniture = 54,
TQForum = 79,
PathFind = 97,
LockItem = 102,
ShowRevive = 1053,
HideRevive = 1054,
StatueMaker = 1066,
GambleOpen = 1077,
GambleClose = 1078,
Compose = 1086,
Craft1 = 1088,
Craft2 = 1089,
Warehouse = 1090,
ShoppingMallShow = 1100,
ShoppingMallHide = 1101,
NoOfflineTraining = 1117,
CenterClient = 1155,
ClaimCP = 1197,
ClaimAmount = 1198,
MerchantApply = 1201,
MerchantDone = 1202,
RedeemEquipment = 1233,
ClaimPrize = 1234,
RepairAll = 1239,
FlowerIcon = 1244,
SendFlower = 1246,
ReciveFlower = 1248,
WarehouseVIP = 1272,
UseExpBall = 1288,
HackProtection = 1298,
HideGUI = 1307,
Inscribe = 3059,
BuyPrayStone = 3069,
HonorStore = 3104,
Opponent = 3107,
CountDownQualifier = 3109,
QualifierStart = 3111,
ItemsReturnedShow = 3117,
ItemsReturnedWindow = 3118,
ItemsReturnedHide = 3119,
QuestFinished = 3147,
QuestPoint = 3148,
QuestPointSparkle = 3164,
StudyPointsUp = 3192,
Updates = 3218,
IncreaseLineage = 3227,
HorseRacingStore = 3245,
GuildPKTourny = 3249,
QuitPK = 3251,
Spectators = 3252,
CardPlayOpen = 3270,
CardPlayClost = 3271,
ArtifactPurification = 3344,
SafeguardConvoyShow = 3389,
SafeguardConvoyHide = 3390,
RefineryStabilization = 3392,
ArtifactStabilization = 3398,
SmallChat = 3406,
NormalChat = 3407,
Reincarnation = 3439;
}
public class WindowCommands
{
public const ushort
Compose = 1,
Craft = 2,
Warehouse = 4,
DetainRedeem = 336,
DetainClaim = 337,
VIPWarehouse = 341,
Breeding = 368,
PurificationWindow = 455,
StabilizationWindow = 459,
TalismanUpgrade = 347,
GemComposing = 422,
OpenSockets = 425,
Blessing = 426,
TortoiseGemComposing = 438,
RefineryStabilization = 448,
HorseRacingStore = 464,
Reincarnation = 485;
}
public const ushort
ObserveKnownPerson = 54,
SetLocation = 74,
Hotkeys = 75,
ConfirmFriends = 76,
ConfirmProficiencies = 77,
ConfirmSpells = 78,
ChangeDirection = 79,
ChangeAction = 81,
UsePortal = 85,
Teleport = 86,
Leveled = 92,
XPListEnd = 93,
Revive = 94,
DeleteCharacter = 95,
ChangePKMode = 96,
ConfirmGuild = 97,
SwingPickaxe = 99,
UnknownEntity = 102,
NewCoordonates = 108,
OwnBooth = 111,
GetSurroundings = 114,//251
OpenCustom = 116,
ObserveEquipment = 117,
EndTransformation = 118,
EndFly = 120,
ViewEnemyInfo = 123,
OpenWindow = 126,
CompleteLogin = 251,//132,
RemoveEntity = 135,
Jump = 137,
Die = 145,
TeamSearchForMember = 106,
EndTeleport = 146,
ViewFriendInfo = 148,
ChangeFace = 151,
ViewPartnerInfo = 152,
FlashStep = 156,
Away = 161,
ObserveEquipment2 = 310;
public Data(bool Create)
{
if (Create)
{
Buffer = new byte[37 + 8];
WriteUInt16(37, 0, Buffer);
WriteUInt16(10010, 2, Buffer);
}
}
byte[] Buffer;
public uint UID
{
get { return BitConverter.ToUInt32(Buffer, 4); }
set { Writer.WriteUInt32(value, 4, Buffer); }
}
public uint dwParam
{
get
{
return BitConverter.ToUInt32(Buffer, 8);
}
set
{
WriteUInt32(value, 8, Buffer);
}
}
public Time32 TimeStamp
{
get
{
return new Time32(BitConverter.ToUInt32(Buffer, 16));
}
set
{
WriteUInt32((uint)value.GetHashCode(), 16, Buffer);
}
}
public uint ID
{
get
{
return BitConverter.ToUInt16(Buffer, 20);
}
set
{
WriteUInt32(value, 20, Buffer);
}
}
public Game.Enums.ConquerAngle Facing
{
get
{
return (Game.Enums.ConquerAngle)Buffer[22];
}
}
public ushort wParam1
{
get
{
return BitConverter.ToUInt16(Buffer, 24);
}
set
{
WriteUInt16(value, 24, Buffer);
}
}
public ushort wParam2
{
get
{
return BitConverter.ToUInt16(Buffer, 26);
}
set
{
WriteUInt16(value, 26, Buffer);
}
}
public uint wParam3
{
get
{
return BitConverter.ToUInt32(Buffer, 24);
}
set
{
WriteUInt32(value, 24, Buffer);
}
}
public uint wParam4
{
get
{
return BitConverter.ToUInt32(Buffer, 26);
}
set
{
WriteUInt32(value, 26, Buffer);
}
}
public void Deserialize(byte[] buffer)
{
this.Buffer = buffer;
}
public byte[] ToArray()
{
return Buffer;
}
public void Send(Client.GameState client)
{
client.Send(Buffer);
}
}
}






