lionheartallstar Posted November 3, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 11/01/14 Last Seen: December 15, 2014 Share Posted November 3, 2014 Hi guys, basically I'm new and was thinking of implementing Wings in my server. I need a simple NPC that requires +10 equipment (Hat,Armor,Garment,Shoe) and 500m for a Wing. Help anybody? Quote Link to comment Share on other sites More sharing options...
Winz Posted November 5, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 5, 2014 mark as answered, and repute +1 if you would like to.thanks Quote Link to comment Share on other sites More sharing options...
Winz Posted November 4, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 4, 2014 (edited) //================================= //======== rAthena Script ========= //== +10 item and zeny trader ===== //== Compatible with: rAthena SVN = //== Version: -99 ================= //== Maed by: Winz ================ //================================= //== uhh, pardon with the words === //== lols ========================= //================================= prontera,157,158,3 script WINGS!! 905,{ getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if(@inventorylist_refine[.@i] == 10){ set .@datitem, .@i; break; } } if (!.@datitem) { mes "You don't have any +10 item with you"; close; } if (Zeny < 500*1000*1000) { mes "You don't have at least ^FF0000500,000,000 Z^000000 with you"; close; } mes "So.. umm.."; mes "Wanna trade your ^0000FF+10 "+getitemname(@inventorylist_id[.@i]); mes "^000000and ^FF0000500,000,000 Z^000000 for a wing?"; mes "You w!ll be abLe.. to.. to fly! yeah, fly! believe me!"; switch(select("Yes:No")) { case 1: next; mes "I believe I can fly~~"; delitem @inventorylist_id[.@i],1; set Zeny, Zeny - 500000000; next; mes "I believe I can tuch da skai!"; mes "^0000FF*throwing a pair of wings"; mes "Looks wearable!^000000"; getitem 512, 1; close; case 2: next; mes "R.r..really?"; mes "So you don't want to high up fly?"; mes "Ok then.."; close; } } Edited November 4, 2014 by Winz Quote Link to comment Share on other sites More sharing options...
kaixler44 Posted November 4, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 07/13/14 Last Seen: April 26, 2015 Share Posted November 4, 2014 (edited) Winz i kindly like this script but, can you make the NPC to not accept +10 weapon?? just armor shield muff shoes how bout that? Edited November 4, 2014 by kaixler44 Quote Link to comment Share on other sites More sharing options...
Winz Posted November 4, 2014 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 1479 Reputation: 174 Joined: 12/14/11 Last Seen: November 21, 2016 Share Posted November 4, 2014 //================================= //======== rAthena Script ========= //== +10 item (not weapon) and zeny trader ===== //== Compatible with: rAthena SVN = //== Version: -99 ================= //== Maed by: Winz ================ //================================= //== uhh, pardon with the words === //== lols ========================= //================================= prontera,157,158,3 script WINGZZ!! 909,{ getinventorylist; for(set .@i,0; .@i < @inventorylist_count; set .@i,.@i+1){ if(@inventorylist_refine[.@i] == 10 && getiteminfo(@inventorylist_id[.@i],5) != 32 && getiteminfo(@inventorylist_id[.@i],5) != 2 ) { set .@datitem, .@i; break; } } if (!.@datitem) { mes "You don't have any +10 item with you."; mes "Weapons and shields will not be counted as one of them."; close; } if (Zeny < 500*1000*1000) { mes "You don't have at least ^FF0000500,000,000 Z^000000 with you"; close; } mes "So.. umm.."; mes "Wanna trade your ^0000FF+10 "+getitemname(@inventorylist_id[.@i]); mes "^000000and ^FF0000500,000,000 Z^000000 for a wing?"; mes "You w!ll be abLe.. to.. to fly! yeah, fly! believe me!"; switch(select("Yes:No")) { case 1: next; mes "I believe I can fly~~"; delitem @inventorylist_id[.@i],1; set Zeny, Zeny - 500000000; next; mes "I believe I can tuch da skai!"; mes "^0000FF*throwing a pair of wings"; mes "Looks wearable!^000000"; getitem 512, 1; close; case 2: next; mes "R.r..really?"; mes "So you don't want to high up fly?"; mes "Ok then.."; close; } } This will reject any 1-handed weapon, 2-handed weapon, and shield (since 2 handed weapon will take up the number 32 (shield) and 2 (1 handed weapon)) if you wanna receive shields, then search and remove the following: getiteminfo(@inventorylist_id[.@i],5) != 32 && i'm kind of afraid it will be bugged. since heard that NPC temporary variables may be changed when is paused using next, select, menu. but, i found it to be negative. i tried to use player temporary variable, and it's bugged. after the item was removed (deleted), the next time that char talks with the NPC, NPC will think that he still have the item (even though the trading process will be denied (money not deducted again)) if you don't get this paragraph ^^^^, that's fine, don't mind. Quote Link to comment Share on other sites More sharing options...
kaixler44 Posted November 4, 2014 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 10 Reputation: 0 Joined: 07/13/14 Last Seen: April 26, 2015 Share Posted November 4, 2014 dude I've tried the script and it works well nice job on that. i don't want to put 1 handed or 2 handed sword its because is really easy to make +10 weapon. thank you very much Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 7, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Thursday at 04:49 PM Share Posted November 7, 2014 something like this ? http://upaste.me/r/5bce99 Quote Link to comment Share on other sites More sharing options...
lionheartallstar Posted November 12, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 13 Reputation: 0 Joined: 11/01/14 Last Seen: December 15, 2014 Author Share Posted November 12, 2014 alright thank u guys Quote Link to comment Share on other sites More sharing options...
Question
lionheartallstar
Hi guys, basically I'm new and was thinking of implementing Wings in my server.
I need a simple NPC that requires +10 equipment (Hat,Armor,Garment,Shoe) and 500m for a Wing.
Help anybody?
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.