Famous Posted August 20, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share Posted August 20, 2012 izlude,126,111,5 script Sample 757,{setarray .@MobList[1],1734,1647,1785,1630; if( @LastMobID ) set .@MobList[0],@LastMobID; for( set .@i,( (@LastMobID)?0:1 ); .@i < getarraysize( .@MobList ); set .@i,.@i + 1 ) set .@Menu$,.@Menu$ + ( (!.@i)?"^0000FF[ LAST MOB ] ":" ^FF0000~ " ) + getmonsterinfo(.@MobList[.@i],0)+"^000000:"; set @LastMobID,.@MobList[ ( select( .@Menu$ ) - ( (@LastMobID)?1:0 ) ) ]; mes "You selected "+getmonsterinfo(@LastMobID,0); monster strcharinfo(3),-1,-1,"--ja--",@LastMobID,1; close; } how to make this is script like this when you need to summon you have to pay example pay TCG CARD 100pcs Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 20, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted August 20, 2012 mes "You selected "+getmonsterinfo(@LastMobID,0); if( countitem( 7227 ) < 100 ){ mes "But you need 100 "+getitemname( 7227 )+" to summon it."; }else{ monster strcharinfo(3),-1,-1,"--ja--",@LastMobID,1; delitem 7227,100; } Quote Link to comment Share on other sites More sharing options...
Famous Posted August 20, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted August 20, 2012 can u make each monster will have different payment I already test it but its same its only say the mess but even i dont have TCG i can summon not working Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 20, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted August 20, 2012 http://pastebin.com/raw.php?i=wUyzvqe7 if dont working ..please mention why ...show error if any.. the script run just fine in my test server... and there is no need to double post the same thing when you already done it here http://rathena.org/board/topic/68737-show-last-summoned-monster/ Quote Link to comment Share on other sites More sharing options...
Famous Posted August 20, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted August 20, 2012 (edited) the script are working and also the mess is working problem is the npc ddnt get the TCG and even I only have 1tcg I can still summon monster sorry for my post at the other section rachel,135,104,5 script Sample 757,{setarray .@MobList[1],1511,1647,1785,1630; mes "You selected "+getmonsterinfo(@LastMobID,0); if( countitem( 7227 ) < 100 ){ mes "But you need 100 "+getitemname( 7227 )+" to summon it."; }else{ monster strcharinfo(3),-1,-1,"--ja--",@LastMobID,1; delitem 7227,100; } if( @LastMobID ) set .@MobList[0],@LastMobID; for( set .@i,( (@LastMobID)?0:1 ); .@i < getarraysize( .@MobList ); set .@i,.@i + 1 ) set .@Menu$,.@Menu$ + ( (!.@i)?"^0000FF[ LAST MOB ] ":" ^FF0000~ " ) + getmonsterinfo(.@MobList[.@i],0)+"^000000:"; set @LastMobID,.@MobList[ ( select( .@Menu$ ) - ( (@LastMobID)?1:0 ) ) ]; mes "You selected "+getmonsterinfo(@LastMobID,0); monster strcharinfo(3),-1,-1,"--ja--",@LastMobID,1; close; } I use this script Edited August 20, 2012 by zhen Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 20, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM Share Posted August 20, 2012 alway refer to the latest script if there is any... =='' otherwise, it is pointless for members to post a new / updated script because you prefer to stay at previous version of that script.. Quote Link to comment Share on other sites More sharing options...
Famous Posted August 21, 2012 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted August 21, 2012 its working thanks a lot Quote Link to comment Share on other sites More sharing options...
Question
Famous
how to make this is script like this
when you need to summon you have to pay example pay TCG CARD 100pcs
Link to comment
Share on other sites
6 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.