Yummy Posted March 16, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 236 Reputation: 12 Joined: 03/07/12 Last Seen: March 6 Share Posted March 16, 2012 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 Quote Link to comment Share on other sites More sharing options...
Derceto Posted March 16, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 01/17/12 Last Seen: February 15, 2014 Share Posted March 16, 2012 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" Quote Link to comment Share on other sites More sharing options...
0 Schmerz Posted December 27, 2019 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 12/02/19 Last Seen: January 18 Share Posted December 27, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted December 27, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 8 hours ago Share Posted December 27, 2019 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 1 Quote Link to comment Share on other sites More sharing options...
0 Schmerz Posted December 27, 2019 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 21 Reputation: 0 Joined: 12/02/19 Last Seen: January 18 Share Posted December 27, 2019 wow thanks sader i will try this right away! Quote Link to comment Share on other sites More sharing options...
Yummy Posted March 16, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 236 Reputation: 12 Joined: 03/07/12 Last Seen: March 6 Author Share Posted March 16, 2012 Thanks Derceto! Quote Link to comment Share on other sites More sharing options...
Yummy Posted March 20, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 236 Reputation: 12 Joined: 03/07/12 Last Seen: March 6 Author Share Posted March 20, 2012 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 : } Quote Link to comment Share on other sites More sharing options...
EvilPuncker Posted March 20, 2012 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 713 Reputation: 71 Joined: 11/08/11 Last Seen: December 25, 2024 Share Posted March 20, 2012 missing a ; after them?" Quote Link to comment Share on other sites More sharing options...
Yummy Posted March 20, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 236 Reputation: 12 Joined: 03/07/12 Last Seen: March 6 Author Share Posted March 20, 2012 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 Quote Link to comment Share on other sites More sharing options...
Derceto Posted March 20, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 43 Reputation: 2 Joined: 01/17/12 Last Seen: February 15, 2014 Share Posted March 20, 2012 You loaded same script twice. Restart map server or remove duplicate entry in scripts_custom.conf (or wherever you put it) Quote Link to comment Share on other sites More sharing options...
Question
Yummy
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.