Subzero Posted July 28, 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 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[[email protected]] == getcharid( .type[[email protected]] ) ) { warp "06guild_0"+ [email protected], 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 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[[email protected]] == getcharid( .type[[email protected]] ) ) { warp "06guild_0"+ [email protected], 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 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 [email protected], 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 [email protected], 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[[email protected]], 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 [email protected], 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 [email protected], 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[[email protected]], 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 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 [email protected], 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 [email protected], 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[[email protected]], 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 [email protected], 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 [email protected], 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[[email protected]], 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 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...
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