Good day to all the time. Today made for a pump station, which will show the effects of the queue, or from what is specified ID. And I thought, but it would be convenient if we could keep a particularly favorite effects that you can select Add to Favorites. Climbs @input$, You write name, then the description. And the NPC stores this info. Then he can choose your favorites and there in the format: ID; Title, Description of Goods stored information.
The same can be done without creating a new table in the database?
Here's the script:
prt_fild08.gat,123,68,4 script Specialeffect 467,{
mes "[specialeffect]";
mes "Hello You want to see the effects, or see a list of favorite effects?";
next;
switch(select("See the effects of:Favorites:Exit")){
case 1:
mes "[specialeffect]";
mes "Getting ...";
set .circle,0;
next;
M_circle:
if(.circle == 18) set .circle,20;
if(.circle == 19) set .circle,20;
set .circle,.circle+1;
next;
mes "[specialeffect]";
mes "No. special effects:";
mes "== == == == == == == == == == == ";
mes " ^00aa00"+.circle+"^000000";
mes "== == == == == == == == == == == ";
specialeffect2 .circle;
switch(select("Next:Go to...:Save:Cancel")){
case 1: goto M_circle;
case 2: L_inp: input @inp;
if (@inp <1 || @inp > 700) { next; mes "[specialeffect]"; mes "You have entered ^00aa00"+@inp+"^000000. This is an incorrect number of special effects."; mes "Need to enter values ??from 1 to 700."; goto L_inp; }
set .circle,@inp-1;
goto M_circle;
case 3:
mes "[specialeffect]";
mes "";
case 4: close; end;
}
case 2:
// ???
// ???
// ???
case 3: close; end;
}
}
Question
Sparrow
Good day to all the time. Today made for a pump station, which will show the effects of the queue, or from what is specified ID. And I thought, but it would be convenient if we could keep a particularly favorite effects that you can select Add to Favorites. Climbs @input$, You write name, then the description. And the NPC stores this info. Then he can choose your favorites and there in the format: ID; Title, Description of Goods stored information.
The same can be done without creating a new table in the database?
Here's the script:
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.