Jump to content

battle.cpp argument problem


Go to solution Solved by Endymion,

Recommended Posts

Hello metin2dev , i'm checking for this problem for almost 2 days.

 

syserr:

SYSERR: Jan 11 12:52:33 :: number_ex: number(): first argument is bigger than second argument 175 -> 165, battle.cpp 455

By the way , i already checked all columns in mob_proto for differences , nothing wrong. ( gold_min;gold_max )

The error comes each time I attack a monster or a metin stone.

 

The line in battle.cpp (455):

iAtk = pkAttacker->GetPoint(POINT_ATT_GRADE) + iDam - (pkAttacker->GetLevel() * 2);

w2qgYXI.png

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

By the way , i already checked all columns in mob_proto for differences , nothing wrong. ( gold_min;gold_max )

 

Run this query to find which mob has greater "min" value than "max" value:

 

SELECT
	mob_proto.vnum,
	mob_proto.locale_name,
	mob_proto.damage_min,
	mob_proto.damage_max,
	mob_proto.gold_min,
	mob_proto.gold_max
FROM
	player.mob_proto
WHERE
	mob_proto.damage_min > mob_proto.damage_max
OR mob_proto.gold_min > mob_proto.gold_max

This will select rows where the gold_min greater than gold_max or damage_min greater than damage_max

Link to comment
Share on other sites

  • Solution
SELECT item_proto.vnum, item_proto.locale_name,item_proto.value1,item_proto.value2,item_proto.value3,item_proto.value4,item_proto.value5 FROM player.item_proto WHERE (item_proto.value1+item_proto.value5) > (item_proto.value2+item_proto.value5) OR (item_proto.value3+item_proto.value5) > (item_proto.value4+item_proto.value5);

?

Check if any weapon don't have min dmg bigger than max dmg.

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.