The NPC checks the players level to see weather or not the items level will be too high after upgrading. If the items level exceeds yours after an upgrade the NPC wont allow you p upgrade and will tell you to go level up. However, the NPC does this check and treats the player as if their level is too low even when it isnt. Ive tried a combination if different things but nothing works so here's the orig code. Hopefully someone can point me in the right direction.
[/CODE]
Edit* The little - was a + before which made it neglect to do check at all. Changing it to - made it check and give the wrong answer everytime.
Code:
if (infos.BaseInformation.Level [COLOR="Red"]-[/COLOR] infos.CalculateUplevel() > client.Entity.Level)
{
dialog.Text("The level after upgrading will be too high. Go level up more!");
dialog.Link("Alright", 255);
dialog.Avatar(50);
dialog.Send();
return;
}[CODE]
Edit* The little - was a + before which made it neglect to do check at all. Changing it to - made it check and give the wrong answer everytime.