Fix incorrect method usage in NPC script (9120003.js)

Corrected the condition in NPC script 9120003.js by replacing cm.getMeso < price with cm.getMeso() < price to properly compare mesos against the price.
This commit is contained in:
v3921358 authored and GitHub committed 2024-12-12 19:55:48 +08:00
1 parent a5b572023b
commit afb04b0d80
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ function action(mode, type, selection) {
cm.dispose(); cm.dispose();
return; return;
} }
if (cm.getMeso < price) { if (cm.getMeso() < price) {
cm.sendOk("Please check and see if you have " + price + " mesos to enter this place."); cm.sendOk("Please check and see if you have " + price + " mesos to enter this place.");
} else { } else {
cm.gainMeso(-price); cm.gainMeso(-price);