- Joined
- Jun 29, 2007
- Messages
- 60
- Reaction score
- 0
ok so, u got that NPC that lvls items when they are after lvl 119, the NPC id is 999, but that doesn't matter, so when i run my server and then i like go to that NPC and try to lvl a maxed lvl item, instead of tellling me :
"Your equip is on the max level already. I can't help you anymore."
it is showing me the following error in the
Console
i got this code for that
[/SIZE]
and
[/SIZE]
but apprently it does nothing.
the other ones like "If MyChar.inventorycontains(1088000,1)" and the other ones work, but this one doesn't thx to who ever helps me.
"Your equip is on the max level already. I can't help you anymore."
it is showing me the following error in the
Console
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
at COServer_Project.Client.GetPacket(Byte[] data) in D:\CoServer\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\Client.cs:line 2825
at COServer_Project.General.GamePacketHandler(Object Sender, HybridSocket Socket) in D:\CoServer\Steals Server Pack\Source\PowerSource CO\COServerProject1\COServerProject\General.cs:line 374
i got this code for that
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]
if[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (![/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Other[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].EquipMaxedLvl(ItemId))
[/SIZE][SIZE=3]
and
Code:
[SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]
else
[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]{
SendPacket([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]General[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].MyPackets.NPCSay([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Your equip is on the max level already. I can't help you anymore."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]));
SendPacket([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]General[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].MyPackets.NPCLink([/SIZE][SIZE=2][COLOR=#a31515][SIZE=2][COLOR=#a31515]"Ok."[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], 255));
SendPacket([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]General[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].MyPackets.NPCSetFace(30));
SendPacket([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]General[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2].MyPackets.NPCFinish());
}
}
[/SIZE][SIZE=3]
but apprently it does nothing.
the other ones like "If MyChar.inventorycontains(1088000,1)" and the other ones work, but this one doesn't thx to who ever helps me.