ffc script Script_Shop{
void run(int item_id, int message, int perm, bool multi, int item_req){
int stored= this->Data;
if(Hero->Item[item_id] && !multi){
this->Data= FFCS_INVISIBLE_COMBO;
Quit();
}
if(item_req){
while(!Hero->Item[item_req]){
this->Data= FFCS_INVISIBLE_COMBO;
Waitframe();
}
this->Data= stored;
}
Screen->D[perm]=message;
while ( true ) {
if(Hero->Item[item_id]){
if(!multi){
this->Data= FFCS_INVISIBLE_COMBO;
Quit();
}
}
Waitframe(); //Main while loop.
}
}
}