Subzero Posted July 28, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Share Posted July 28, 2021 hello rA guys its posibble to make this private mvp room spawn using coin? https://pastebin.com/SzANV0K4 i like to change spawn using zeny to 10 mitril coin Quote Link to comment Share on other sites More sharing options...
0 Ronald Posted August 1, 2021 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 250 Reputation: 21 Joined: 06/04/14 Last Seen: November 17, 2024 Share Posted August 1, 2021 On 7/28/2021 at 4:22 PM, Subzero said: hello rA guys its posibble to make this private mvp room spawn using coin? https://pastebin.com/SzANV0K4 i like to change spawn using zeny to 10 mitril coin Yes, it's possible. Just change its condition. For example: if (countitem(674) > 10){ { if ( .inuseid[.@room] == getcharid( .type[.@room] ) ) { warp "06guild_0"+ .@room, 0,0; delitem 674,10; close; } else if (countitem(674) < 10) { mes "You don't have enough zeny to rent a room."; } Haven't tried it yet though. I may have deleted some of the parameters but its for you to check out what shouldn't be deleted. I just gave you a brief and example. You just have to change condition of zeny to an item using item count. Good luck! Quote Link to comment Share on other sites More sharing options...
0 Subzero Posted August 1, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Author Share Posted August 1, 2021 1 hour ago, Ronald said: Yes, it's possible. Just change its condition. For example: if (countitem(674) > 10){ { if ( .inuseid[.@room] == getcharid( .type[.@room] ) ) { warp "06guild_0"+ .@room, 0,0; delitem 674,10; close; } else if (countitem(674) < 10) { mes "You don't have enough zeny to rent a room."; } Haven't tried it yet though. I may have deleted some of the parameters but its for you to check out what shouldn't be deleted. I just gave you a brief and example. You just have to change condition of zeny to an item using item count. Good luck! for spawn sir not renting room Quote Link to comment Share on other sites More sharing options...
0 Ronald Posted August 1, 2021 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 250 Reputation: 21 Joined: 06/04/14 Last Seen: November 17, 2024 Share Posted August 1, 2021 (edited) 13 hours ago, Subzero said: for spawn sir not renting room Ohh, sorry. Though the logic is just the same. case 2: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another MVP when there are monsters around."; close; } else if ( .mvpcost ) { mes "[MVP Summoner]"; mes "The cost to summon an MVP is "+ callfunc( "F_InsertComma", .mvpcost ) +" Mithril Coin."; next; set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; if (countitem(675) < .mvpcost ) { mes "You don't have enough Mithrils to summon an MVP."; close; } } else { set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if (countitem(675) > .mvpcost ) end; delitem 675,1*.mvpcost; monster "this", 0, 0, "--ja--", .mvpid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; case 3: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another mini-boss when there are monsters around."; close; } else if ( .bosscost ) { mes "[MVP Summoner]"; mes "The cost to summon a mini-boss is "+ callfunc( "F_InsertComma", .bosscost ) +" Mithril Coins."; next; set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; if (countitem(675) < .bosscost ) { mes "You doesn't have enough Mithrils to summon a mini-boss."; close; } } else { set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if (countitem(675) > .bosscost ) end; delitem 675,1*.bosscost; monster "this", 0, 0, "--ja--", .bossid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; _____ set .mvpcost, 10; // Zeny cost to summon an MVP (0 = free) set .bosscost, 10; // Zeny cost to summon a boss monster (0 = free) Haven't tried it though. Optimized it if there are any errors since I haven't tested it yet. But it will definitely give you a huge idea on how it should work. Edited August 1, 2021 by Ronald typo. Quote Link to comment Share on other sites More sharing options...
0 Subzero Posted August 3, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Author Share Posted August 3, 2021 (edited) On 8/2/2021 at 12:50 AM, Ronald said: Ohh, sorry. Though the logic is just the same. case 2: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another MVP when there are monsters around."; close; } else if ( .mvpcost ) { mes "[MVP Summoner]"; mes "The cost to summon an MVP is "+ callfunc( "F_InsertComma", .mvpcost ) +" Mithril Coin."; next; set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; if (countitem(675) < .mvpcost ) { mes "You don't have enough Mithrils to summon an MVP."; close; } } else { set .@menu, select(.mvpid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if (countitem(675) > .mvpcost ) end; delitem 675,1*.mvpcost; monster "this", 0, 0, "--ja--", .mvpid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; case 3: if ( mobcount( "this", strnpcinfo(3)+"::OnMobDead" ) ) { mes "[MVP Summoner]"; mes "I cannot summon another mini-boss when there are monsters around."; close; } else if ( .bosscost ) { mes "[MVP Summoner]"; mes "The cost to summon a mini-boss is "+ callfunc( "F_InsertComma", .bosscost ) +" Mithril Coins."; next; set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; if (countitem(675) < .bosscost ) { mes "You doesn't have enough Mithrils to summon a mini-boss."; close; } } else { set .@menu, select(.bossid_menu$) -1; mes "[MVP Summoner]"; } mes "Please get ready."; close2; if (countitem(675) > .bosscost ) end; delitem 675,1*.bosscost; monster "this", 0, 0, "--ja--", .bossid[.@menu], 1, strnpcinfo(3)+"::OnMobDead"; end; _____ set .mvpcost, 10; // Zeny cost to summon an MVP (0 = free) set .bosscost, 10; // Zeny cost to summon a boss monster (0 = free) Haven't tried it though. Optimized it if there are any errors since I haven't tested it yet. But it will definitely give you a huge idea on how it should work. dont have error issue but when i spawn coin not gone mvp not spawned Edited August 3, 2021 by Subzero Quote Link to comment Share on other sites More sharing options...
0 Ronald Posted August 4, 2021 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 250 Reputation: 21 Joined: 06/04/14 Last Seen: November 17, 2024 Share Posted August 4, 2021 On 8/3/2021 at 2:58 PM, Subzero said: dont have error issue but when i spawn coin not gone mvp not spawned Please reproduce. I've already provided you all the details to need to work it the way you wanted. I just gave you an idea on what you have to do. Basically you'll just need to do the dataflow. I can't test it on my emulator at the moment since I am a little bit busy but with all the details I've provided you should have fixed it. Quote Link to comment Share on other sites More sharing options...
Question
Subzero
hello rA guys
its posibble to make this private mvp room spawn using coin?
https://pastebin.com/SzANV0K4
i like to change spawn using zeny to 10 mitril coin
Link to comment
Share on other sites
5 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.