Jump to content

Question

Posted

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;
} 
}

1 answer to this question

Recommended Posts

Posted

Would you like this to be character specific, account specific or globally specific?

In this scenario, an array will suffice because the indexes won't get near the maximum (at least we'd hope, that'd be a long favorites).

If I get some time later, I'll throw something together. It won't require a table in the database.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...