It only work upon reloading the script. but upon starting the server it wont work. Hope you get my pointmake it
OnBuyItem:
disable_items();
and you wont be able to equip or enquip items during the buy/preview
It only work upon reloading the script. but upon starting the server it wont work. Hope you get my pointmake it
OnBuyItem:
disable_items();
and you wont be able to equip or enquip items during the buy/preview
ok replace OnEnd: ...... end; withHello sir it doesnt work.put it under OnBuyItem
Thanks but i only want it in the script not in global.>>Hercules/conf/map/battle/items.conf
item_enabled_npc: true -> false
OnEnd:
if (@qe[7]) {
if ( @qe[1] & EQP_HEAD_TOP ) {
set .@itemid, getequipid(EQI_HEAD_TOP);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_TOP, .@look;
}
if ( @qe[1] & EQP_HEAD_MID && !(@qe[1]&EQP_HEAD_TOP)) {
set .@itemid, getequipid(EQI_HEAD_MID);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_MID, .@look;
}
if ( @qe[1] & EQP_HEAD_LOW && !(@qe[1]&(EQP_HEAD_TOP|EQP_HEAD_MID)) ) {
set .@itemid, getequipid(EQI_HEAD_LOW);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_LOW, .@look;
}
if ( @qe[1] & EQP_COSTUME_HEAD_TOP) {
set .@itemid, getequipid(EQI_COSTUME_HEAD_TOP);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_TOP, .@look;
}
if ( @qe[1] & EQP_COSTUME_HEAD_MID && !(@qe[1]&(EQP_HEAD_TOP|EQP_COSTUME_HEAD_TOP))) {
set .@itemid, getequipid(EQI_COSTUME_HEAD_MID);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_MID, .@look;
}
if ( @qe[1] & EQP_COSTUME_HEAD_LOW && !(@qe[1]&(EQP_HEAD_TOP|EQP_COSTUME_HEAD_TOP|EQP_HEAD_MID|EQP_COSTUME_HEAD_MID)) ) {
set .@itemid, getequipid(EQI_COSTUME_HEAD_LOW);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_HEAD_BOTTOM, .@look;
}
if ( @qe[1]&EQP_GARMENT ) {
set .@itemid, getequipid(EQI_GARMENT);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_ROBE, .@look;
}
if ( @qe[1] & EQP_COSTUME_GARMENT) {
set .@itemid, getequipid(EQI_COSTUME_GARMENT);
if (.@itemid > 0 )
set .@look, getiteminfo(.@itemid,11);
changelook LOOK_ROBE, .@look;
}
}
deletearray @qe;
end;
hmm~It only work upon reloading the script. but upon starting the server it wont work. Hope you get my pointmake it
OnBuyItem:
disable_items();
and you wont be able to equip or enquip items during the buy/preview
We use essential cookies to make this site work, and optional cookies to enhance your experience.