Is this the correct way? (usecode)
Posted: Sun Mar 30, 2003 9:15 am
Is this the correct way, or is there a more efficient way that escapes me?
bottlevendor 0xC00() {
var money = UI_count_objects(-357, 0x284, -359, -359);
if (money >= 2) {
var bottle = UI_create_new_object(0x268);
UI_set_item_frame(bottle, 0x9);
UI_update_last_created(UI_get_object_position(item));
UI_remove_party_items(0x2, 0x284, -359, -359, 0);
} else {
UI_item_say(item, "You do not have enough gold.");
}
}
Also, what is the accepted way to test when something is on the egg for the Something On egg trigger?
Thank you.
bottlevendor 0xC00() {
var money = UI_count_objects(-357, 0x284, -359, -359);
if (money >= 2) {
var bottle = UI_create_new_object(0x268);
UI_set_item_frame(bottle, 0x9);
UI_update_last_created(UI_get_object_position(item));
UI_remove_party_items(0x2, 0x284, -359, -359, 0);
} else {
UI_item_say(item, "You do not have enough gold.");
}
}
Also, what is the accepted way to test when something is on the egg for the Something On egg trigger?
Thank you.