PapaZola Posted January 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Share Posted January 10, 2012 hello all i want request npc make hunting spear quest item require -poring coin 1000 -sticky mucus 500 -feather 1000 and this npc will annoucement player make this quest thx Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 10, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted January 10, 2012 try this prontera,155,181,5 script Sample 757,{ // What Item you want to Make ? set .GiveItem,5001; // Item Requirements + Amounts setarray .Item[0], 607,100, 608,50, 512,200; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){ for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] ); close; } if( select("Make ^FF0000"+getitemname( .GiveItem )+"^000000:Cancel") == 2 ) close; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) delitem .Item[ .@i ],.Item[ .@i + 1 ]; getitem .GiveItem,1; mes "You have Make ^FF0000"+getitemname( .GiveItem )+"^000000"; announce "["+strcharinfo(0)+"] has made ["+getitemname( .GiveItem )+"]",0; close; } Quote Link to comment Share on other sites More sharing options...
PapaZola Posted January 10, 2012 Group: Members Topic Count: 318 Topics Per Day: 0.07 Content Count: 925 Reputation: 33 Joined: 12/05/11 Last Seen: September 20, 2023 Author Share Posted January 10, 2012 thx sir emistry Quote Link to comment Share on other sites More sharing options...
Snap Posted April 16, 2012 Group: Members Topic Count: 64 Topics Per Day: 0.01 Content Count: 186 Reputation: 0 Joined: 04/07/12 Last Seen: May 18, 2012 Share Posted April 16, 2012 try this prontera,155,181,5 script Sample 757,{ // What Item you want to Make ? set .GiveItem,5001; // Item Requirements + Amounts setarray .Item[0], 607,100, 608,50, 512,200; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){ for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] ); close; } if( select("Make ^FF0000"+getitemname( .GiveItem )+"^000000:Cancel") == 2 ) close; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) delitem .Item[ .@i ],.Item[ .@i + 1 ]; getitem .GiveItem,1; mes "You have Make ^FF0000"+getitemname( .GiveItem )+"^000000"; announce "["+strcharinfo(0)+"] has made ["+getitemname( .GiveItem )+"]",0; close; } Can i add more requirements? Quote Link to comment Share on other sites More sharing options...
manabeast Posted April 19, 2012 Group: Members Topic Count: 138 Topics Per Day: 0.03 Content Count: 835 Reputation: 25 Joined: 11/22/11 Last Seen: December 4, 2012 Share Posted April 19, 2012 (edited) try add see ? like this? setarray .Item[0], 607,100, 608,50, 512,200, Item ID,require, Item ID,require, Item ID,require; Edited April 19, 2012 by manabeast Quote Link to comment Share on other sites More sharing options...
miczster Posted November 9, 2012 Group: Members Topic Count: 40 Topics Per Day: 0.01 Content Count: 275 Reputation: 7 Joined: 10/08/12 Last Seen: May 21, 2016 Share Posted November 9, 2012 how about adding more quest items...what part do I need to edit/add and can I ask for an example??? not good yet in scripting Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 9, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 11 hours ago Share Posted November 9, 2012 how about adding more quest items...what part do I need to edit/add and can I ask for an example??? not good yet in scripting duplicate the same script....or find any other script.. Quote Link to comment Share on other sites More sharing options...
0 Tofee Posted April 20, 2017 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 17 Reputation: 0 Joined: 04/07/17 Last Seen: January 22, 2018 Share Posted April 20, 2017 (edited) On 1/10/2012 at 5:55 PM, Emistry said: try this prontera,155,181,5 script Sample 757,{ // What Item you want to Make ? set .GiveItem,5001; // Item Requirements + Amounts setarray .Item[0], 607,100, 608,50, 512,200; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) if( countitem( .Item[.@i] ) < .Item[.@i + 1] ){ for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] ); close; } if( select("Make ^FF0000"+getitemname( .GiveItem )+"^000000:Cancel") == 2 ) close; for( set .@i,0; .@i < getarraysize( .Item ) - 1; set .@i,.@i + 2 ) delitem .Item[ .@i ],.Item[ .@i + 1 ]; getitem .GiveItem,1; mes "You have Make ^FF0000"+getitemname( .GiveItem )+"^000000"; announce "["+strcharinfo(0)+"] has made ["+getitemname( .GiveItem )+"]",0; close; } what if i want an input of how many items i want to make? and i want this part to count the item. mes "Need "+.Item[.@i + 1]+" x "+getitemname( .Item[.@i] ); example mes "you only have",; mes "<item count>/6 <item name>"; instead of just echoing how many items is required Edited April 20, 2017 by Tofee Quote Link to comment Share on other sites More sharing options...
Question
PapaZola
hello all
i want request npc make hunting spear quest
item require
-poring coin 1000
-sticky mucus 500
-feather 1000
and this npc will annoucement player make this quest
thx
Link to comment
Share on other sites
7 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.