Jump to content
  • 0

Skill Point Quest


Question

9 answers to this question

Recommended Posts

Posted

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"

  • 0
Posted
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
Posted

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

Posted

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

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