Jump to content
  • 0

Magic Gear Script


jigsgfx

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

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
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

hmm test it but still have the same problem when i click the npc nothing happen.. no dialogue box appeared

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Read the error message.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  83
  • Reputation:   0
  • Joined:  06/02/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

That's because you're not using rAthena.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Call which function? If he doesn't have checkmadogear script command is gonna need src edit to add this command.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

Ok nvm then, I believed it was a function, as I'm not really this up-to-date about rA new features :P

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