diff options
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 549e14266..d58233dc5 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -13922,6 +13922,7 @@ BUILDIN_FUNC(getmonsterinfo) case 19: script_pushint(st,mob->status.race); break; case 20: script_pushint(st,mob->status.def_ele); break; case 21: script_pushint(st,mob->status.mode); break; + case 22: script_pushint(st,mob->mexp); break; default: script_pushint(st,-1); //wrong Index } return 0; @@ -13937,7 +13938,7 @@ BUILDIN_FUNC(checkvending) // check vending [Nab4] sd = script_rid2sd(st); if(sd) - script_pushint(st,sd->state.vending); + script_pushint(st, sd->state.autotrade ? 2 : sd->state.vending); else script_pushint(st,0); |