Jump to content
  • 0

Magic Gear Script


Question

Posted (edited)

hi, im looking for this Magic Gear script i saw that it can be found on npc/merchant/renters.txt but when i checked i didnt find it.. i saw a script here but when i test it its not working.. the NPC was there but when i try to talk to it even im on Mechanics jobs nothing happens..

here's the script can anyone check this out ?

thanks in advance /no1



// Magic Gear Renter
prontera,163,178,4 script Magic Gear Master 105,{
mes "[Magic Gear Master]";
if (Class == Job_Mechanic || Class == Job_Mechanic_T || Class == Job_Baby_Mechanic) {
 mes "Welcome. Would you like to rent a Magic Gear?";
 next;
 switch(select("Yes:No")) {
 case 1:
  if (!getskilllv("NC_MADOLICENCE")) {
mes "[Magic Gear Master]";
mes "Please learn how to use a Magic Gear first.";
close;
  }
  else if (checkmadogear()) {
mes "[Magic Gear Master]";
mes "You already have a Magic Gear.";
close;
  }
  else if(ismounting()) {
mes "[Magic Gear Master]";
mes "Please remove your cash mount.";
close;
  }
  setmadogear;
  close;
 case 2:
  mes "[Magic Gear Master]";
  mes "I see. Then have a great day.";
  close;
 }
}
mes "How may I help you?";
mes "Magic Gears are only available for Mechanics.";
close;
}

Edited by jigsgfx

8 answers to this question

Recommended Posts

Posted

// http://rathena.org/board/topic/73618-magic-gear-script/
prontera,163,178,4 script Magic Gear Master 105,{
mes "[Magic Gear Master]";
if (Class == Job_Mechanic || Class == Job_Mechanic_T || Class == Job_Baby_Mechanic) {
mes "Welcome. Would you like to rent a Magic Gear?";
next;
if (select("Yes:No") == 2) {
mes "[Magic Gear Master]";
mes "I see. Then have a great day.";
close;
}
if (!getskilllv("NC_MADOLICENCE")) {
mes "[Magic Gear Master]";
mes "Please learn how to use a Magic Gear first.";
close;
} else if (checkmadogear()) {
mes "[Magic Gear Master]";
mes "You already have a Magic Gear.";
close;
} else if (ismounting()) {
mes "[Magic Gear Master]";
mes "Please remove your cash mount.";
close;
}
mes "[Magic Gear Master]";
mes "See you again!";
setmadogear;
close;
}
mes "How may I help you?";
mes "Magic Gears are only available for Mechanics.";
close;
}

Tabbed http://www.heypasteit.com/clip/0K35

Posted (edited)

here's the error..

Error]: Loading NPC file: npc/script/magicgear.txt
script error on npc/script/magicgear.txt line 16
parse_simpleexpr: unmatch ')'
11 : }
12 : if (!getskilllv("NC_MADOLICENCE")) {
13 : mes "[Magic Gear Master]";
14 : mes "Please learn how to use a Magic Gear first.";
15 : close;
* 16 : } else if (checkmadogear'(')) {
17 : mes "[Magic Gear Master]";
18 : mes "You already have a Magic Gear.";
19 : close;
20 : } else if (ismounting()) {
21 : mes "[Magic Gear Master]";

thanks in advance again..

Edited by jigsgfx
Posted

That's because you're not using rAthena.

Heh, sorry for the OT but really, people not using rA asking help on rA forum, this sounds funny somehow...

Try to use callfunc command to recall that function if you ain't using rAthena

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...