Some bugs about region Elllin Forest
Closed this issue · 1 comments
yuxaij commented
- Please replace
java.lang.Math.min
withMath.min
in the following four scripts:
- npc/2131006.js
- npc/2131005.js
- npc/2131001.js
- npc/2131003.js
as they attempted to call the min func with an integer and a division expression, typically java.lang.Math.min(300, cm.itemQuantity(exchangeItem) / 100)
.
A simple script to search java.lang.Math.min/max
in HeavenMS/scripts
showed that only these four had the problem.
- Line 116 in
npc/2133000.js
(EllinPQ's NPC script)
cm.gainItem(1032101, 1);
sends an non-existed equipment to the player and then cause a client crash when the player open his equip inventory.