Jump to content
  • 0

Edit Script [ Freebies ]


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Hello rA :)

my freebies script works fine but after i got the freebies and talk to the npc and get freebies for the 2nd time around it doesnt do anything i want it to message you already got the freebies and emoticon :)

here's the script :


   mes "Welcome to Intel Ragnarok Online!";
   mes "What Service May I Offer You ?";
   next;
   menu "Tour Guide", L14, "Warp to Main Town", L15, "Get Freebies", L16;

   L16:
if(Class==Job_Novice && #New_Player==0){
mes "Good Luck on your Adventure !";
mes "Which path do you wish to take?";
switch(select("Swordsman:Archer:Mage:Acolyte:Merchant:Thief")) {
case 1://Swordsman
jobchange 1;
getitem 13945,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
case 2://Archer
jobchange 3;
getitem 13948,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
case 3://Mage
jobchange 2;
getitem 13946,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
case 4://Acolyte
jobchange 4;
getitem 13947,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
case 5://Merchant
jobchange 5;
getitem 13949,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
case 6://Thief
jobchange 6;
getitem 13950,1;
getitem 12214,5;          // Convex mirror 5pcs.
getitem 12210,5;   // Bubble gum 5pcs.
getitem 12263,5;  // Manual 5pcs.
        set baselevel,20;
skill 1,9,0;
close;
set #New_Player,1;
if(#New_Player == 1 || Class!=Job_Novice ) goto L_Done;
L_Done:
mes "You Have Received the Freebies already.";
close;
savepoint "prontera.gat",138,185;
mes "Start your awesome journey today.";
mes "If you need help. Please use @request / search for Game Staffs. Thank You.";
close;
   }
   end;

thanks :)

SlashGeeGee

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  189
  • Reputation:   16
  • Joined:  11/20/11
  • Last Seen:  

set #New_Player,1;

if(#New_Player == 1 || Class!=Job_Novice ) goto L_Done;

This is your problem, You have to set the variable after every case you make before the "close;" command or it won't run the rest of the script. Also, you must have the "if" command checker in the beginning of the script to check, if put at the end it will run it at the end, or if put after the "close;' command it won't run at all.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

oh i see how to edit then ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

post the entire script and not just some part, and I'd prefer you post it on upaste.me so I can see the entire thing and not some some small codebox

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

Here is the modified Script - Click me!!

I shorted the script a bit also fixed those mentioned bugs.

Just the read the commented lines below the job selection.

Regards,

Chris

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

Here is the modified Script - Click me!!

I shorted the script a bit also fixed those mentioned bugs.

Just the read the commented lines below the job selection.

Regards,

Chris

Thank you very much Chris :(

Done !

Link to comment
Share on other sites

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.

×
×
  • Create New...