PapaZola Posted January 26, 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 26, 2012 (edited) hello someone can make one npc like this function on my server have 7 coloured akatsuki i want make npc change akatsuki to coin player can choose what akatsuki want to trade like 2 yellow akatsuki change to 1 coin like 2 blue akatsuki change to 1 coin like 2 white akatsuki change to 1 coin like 2 orange akatsuki change to 1 coin like 2 pink akatsuki change to 1 coin like 2 purple akatsuki change to 1 coin like 2 green akatsuki change to 1 coin thx bump bump Edited February 1, 2012 by PapaZola Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 1, 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 February 1, 2012 erm try this.... prontera,155,181,4 script Sample 757,{ set .ItemLists[0],5001,5002,5003,5004; set .ItemID,7539; for( set .@i,0; .@i < getarraysize( .ItemLists ); set .@i,.@i + 1 ){ set .@Menu$, .@Menu$ + getitemname( .ItemLists[.@i] )+":"; } set .@i,select( .@Menu$ ) - 1; if( countitem( .ItemLists[.@i] ) < 2 ){ mes "You didnt have enough "+getitemname( .ItemLists[.@i] )+" to trade into "+getitemname( .ItemID )+"..."; }else{ delitem .ItemLists[.@i],2; getitem .ItemID,1; mes "Gained 1 "+getitemname( .ItemID )+" by exchange 2"+getitemname( .ItemLists[.@i] )+" ."; } close; } Quote Link to comment Share on other sites More sharing options...
PapaZola Posted February 2, 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 February 2, 2012 not working i cant click npc Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 2, 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 February 2, 2012 change set .ItemLists[0],5001,5002,5003,5004; into setarray .ItemLists[0],5001,5002,5003,5004; Quote Link to comment Share on other sites More sharing options...
PapaZola Posted February 2, 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 February 2, 2012 thx sir emistry Quote Link to comment Share on other sites More sharing options...
Question
PapaZola
hello
someone can make one npc like this function
on my server have 7 coloured akatsuki
i want make npc change akatsuki to coin
player can choose what akatsuki want to trade
like 2 yellow akatsuki change to 1 coin
like 2 blue akatsuki change to 1 coin
like 2 white akatsuki change to 1 coin
like 2 orange akatsuki change to 1 coin
like 2 pink akatsuki change to 1 coin
like 2 purple akatsuki change to 1 coin
like 2 green akatsuki change to 1 coin
thx
bump
bump
Edited by PapaZolaLink to comment
Share on other sites
4 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.