Jump to content
  • 0

Skill Point Quest


Yummy

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

What it does?

-Its a NPC where a NPC ask you to gather some items in exchange for 1 Skill point

I want it

3 Yellow Gemstone

20 Mucus

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/17/12
  • Last Seen:  

prontera,160,160,5 script Skill points quest 800,{
set .@n$,"[skill Points Exchanger]";
mes .@n$;
mes "Hi, I can exchange 3 Yellow Gemstones and 20 Sticky Mucus to 1 skill point!";
next;
if (countitem(715) < 3 || countitem(938) < 20) {
mes .@n$;
mes "But you don't have'm!";
close;
}
mes .@n$;
mes "Do you want to exchange them?"
next;
if (select("Yes:No") == 2) {
mes .@n$;
mes "Okay then.";
close;
}
else {
delitem 715,3;
delitem 938,20;
set SkillPoint, SkillPoint + 1;
mes .@n$;
mes "All's done!";
}
close;
}

P.S. when you want it, you say "please", not "I want it"

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/02/19
  • Last Seen:  

Hi

I hope somebody can still see this...

can i ask how can i add more items and also zeny to the quest ? 

Thanks in advance

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   702
  • Joined:  12/21/14
  • Last Seen:  

5 hours ago, Schmerz said:

Hi

I hope somebody can still see this...

can i ask how can i add more items and also zeny to the quest ? 

Thanks in advance

this check for the items

if (countitem(715) < 3 || countitem(938) < 20) {

copy/paste as much as you want    && = and || = or

and this delete the items, also copy/paste

delitem 715,3;
delitem 938,20;

for zeny

if(zeny < 10000){
	mes "you don't have 10kz";
	close;
}
zeny -= 10000;

add it before the item check

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  12/02/19
  • Last Seen:  

wow thanks sader i will try this right away! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

Thanks Derceto!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

Help me fix this error

script error on npc/custom/Heritage/spq.txt line 13
   parse_line: need ';'
 8 : mes "But you don't have'm!";
 9 : close;
   10 : }
   11 : mes .@n$;
   12 : mes "Do you want to exchange them?"
*   13 : 'n'ext;
   14 : if (select("Yes:No") == 2) {
   15 : mes .@n$;
   16 : mes "Okay then.";
   17 : close;
   18 : }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

missing a ; after them?"

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   12
  • Joined:  03/07/12
  • Last Seen:  

Thanks Evilpunker but I got another problem encountered with the same script

[Warning]: npc_parsename: Duplicate unique name in file 'npc/custom/Heritage/spq.txt', line'1'. Renaming 'Skill points quest' to '1_761_181_182'.
[Debug]: this npc:
  display name 'Skill points quest'
  unique name 'Skill points quest'
  map=philtown, x=181, y=182
[Debug]: other npc:
  display name 'Skill points quest'
  unique name 'Skill points quest'
  map=philtown, x=181, y=182
[Error]: status_set_viewdata (NPC): No view data for class 0

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/17/12
  • Last Seen:  

You loaded same script twice. Restart map server or remove duplicate entry in scripts_custom.conf (or wherever you put it)

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