Ragnar Lothbrok Posted September 17, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Share Posted September 17, 2012 Can i request a NPC that convert MVP cards to Pods... like Garm Card = 10pods Stormy Card = 15pods FBH Card = 100pods ..... thanks in advance Quote Link to comment Share on other sites More sharing options...
Euphy Posted September 17, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted September 17, 2012 if (countitem(your_card)) { delitem your_card,1; getitem 7179,amount; } else if (...) Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 18, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 18, 2012 i will just put the Card ID or the Card name? Quote Link to comment Share on other sites More sharing options...
Santino Posted September 18, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 198 Reputation: 47 Joined: 08/01/12 Last Seen: July 1, 2015 Share Posted September 18, 2012 card id.. Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 18, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 18, 2012 okei, thanks sir... if i want to add more cards? how will i do it? Quote Link to comment Share on other sites More sharing options...
Santino Posted September 18, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 198 Reputation: 47 Joined: 08/01/12 Last Seen: July 1, 2015 Share Posted September 18, 2012 (edited) if(countitem(card_id) && countitem(card_id) && countitem(card_id)){delitem card_id,1; delitem card_id,1; delitem card_id,1; getitem 7179, 10; } Edited September 18, 2012 by Viole Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 18, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 18, 2012 can you guys make a full NPC script, im still noob in scripting... a NPC that can convert 1 or more pcses of cards at the same time.... if (countitem(your_card)) { delitem your_card,1; getitem 7179,amount; } else if (...) else if (....) <---- what will i put hir? thanks... Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 18, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 18, 2012 you mean multiple requirements for each card ? or change multiple card...and only 1 requirements ? Quote Link to comment Share on other sites More sharing options...
Santino Posted September 18, 2012 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 198 Reputation: 47 Joined: 08/01/12 Last Seen: July 1, 2015 Share Posted September 18, 2012 (edited) @arnie cuz i dunno what do you mean , just try this one.. the default settings under the OnInit: label ( I've based it on your first post ) But you can change it in game.. converter.txt Edited September 18, 2012 by Viole 4 Quote Link to comment Share on other sites More sharing options...
Ragnar Lothbrok Posted September 18, 2012 Group: Members Topic Count: 91 Topics Per Day: 0.02 Content Count: 309 Reputation: 6 Joined: 04/24/12 Last Seen: January 7, 2016 Author Share Posted September 18, 2012 multiple card...and only 1 requirements.. its just like trade in, you will trade your mvp card to pods.. but each mvp card have different amount... ex... 1 Garm Card = 10pods 1 Fallen Bishop Card = 50pods 1 Lightalzen MVP Card = 100pods sorry for my bad english... okei! ill try your script... btw thank you for helping.. Quote Link to comment Share on other sites More sharing options...
Z3R0 Posted September 18, 2012 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 618 Reputation: 201 Joined: 11/09/11 Last Seen: June 14, 2024 Share Posted September 18, 2012 npc header { // Variable ID's .@cards[0],id1,id2,id3; // Item ID's to Get as Reward (Card ID) .@cards[0],a,b,c .@reqs[0],1001,1002,1003; // Item ID's to Turn In .@reqs[0],a,b,c .@req_amount[0],10,50,100; // Amount of Required Items to Turn in... .@req_amount[0],a,b,c // all 'a' corresponds to 1 item, all 'b' corresponds to another, and all 'c' corresponds to another. // Welcome Dialog mes "Hello nub..."; mes "Pick Something"; // Create Menu set .@menu$, getitemname(.@cards[0]); for (set .@a, 1; .@a < getarraysize(.@cards); set .@a, .@a + 1) { set .@menu$, .@menu$ + ":" + .@cards[@a]; } // Query Player Selection set .@choice, select(.@menu$) - 1; // Display Requirements of Selected Item mes "You will need: " + .@req_amount[.@choice] + " of " + .@reqs[.@choice]; mes "Let me see if you have them..."; // Check Requirements of Selected Item if (countitem(.@reqs[.@choice]) >= .@req_amount[.@choice]) { mes "Great! You do!"; mes "Would you like to exchange?"; // Requirements Verified - Ask Player to Swap if (select("Yes:No") == 1) { mes "Ok!"; delitem .@reqs[.@choice], .@req_amount[.@choice]; getitem .@cards[.@choice], 1; mes "Enjoy!"; close; } else { mes "Come back soon"; close; } else { mes "Sorry you don't seem to have what I need..."; close; } } Quote Link to comment Share on other sites More sharing options...
Question
Ragnar Lothbrok
Can i request a NPC that convert MVP cards to Pods...
like
Garm Card = 10pods
Stormy Card = 15pods
FBH Card = 100pods
.....
thanks in advance
Link to comment
Share on other sites
10 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.