mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
Add getcurrencyitemid(currency_id) to Perl/Lua.
This commit is contained in:
@@ -3265,6 +3265,23 @@ XS(XS__getcharidbyname) {
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
XS(XS__getcurrencyitemid);
|
||||
XS(XS__getcurrencyitemid) {
|
||||
dXSARGS;
|
||||
if (items != 1)
|
||||
Perl_croak(aTHX_ "Usage: quest::getcurrencyitemid(int currency_id)");
|
||||
dXSTARG;
|
||||
|
||||
int RETVAL;
|
||||
int currency_id = (int) SvUV(ST(0));
|
||||
|
||||
RETVAL = quest_manager.getcurrencyitemid(currency_id);
|
||||
|
||||
XSprePUSH;
|
||||
PUSHi((IV)RETVAL);
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
XS(XS__getguildnamebyid);
|
||||
XS(XS__getguildnamebyid) {
|
||||
dXSARGS;
|
||||
@@ -4112,6 +4129,7 @@ EXTERN_C XS(boot_quest) {
|
||||
newXS(strcpy(buf, "getItemName"), XS_qc_getItemName, file);
|
||||
newXS(strcpy(buf, "get_spawn_condition"), XS__get_spawn_condition, file);
|
||||
newXS(strcpy(buf, "getcharnamebyid"), XS__getcharnamebyid, file);
|
||||
newXS(strcpy(buf, "getcurrencyitemid"), XS__getcurrencyitemid, file);
|
||||
newXS(strcpy(buf, "getguildnamebyid"), XS__getguildnamebyid, file);
|
||||
newXS(strcpy(buf, "getguildidbycharid"), XS__getguildidbycharid, file);
|
||||
newXS(strcpy(buf, "getgroupidbycharid"), XS__getgroupidbycharid, file);
|
||||
|
||||
Reference in New Issue
Block a user