Pre pull - Favors NPC

This commit is contained in:
Kaan Soral
2025-09-21 16:37:57 +03:00
parent fb9db91f87
commit 195b0e1b2b
10 changed files with 53 additions and 25 deletions
+12
View File
@@ -2248,6 +2248,14 @@ function init_socket(args)
ui_log("Spent 250,000 gold","gray");
ui_log("Sealed the item","gray");
}
else if(response=="blessed")
{
render_interaction({auto:true,skin:"favore",message:"Thank you! The server has been blessed."});
}
else if(response=="blessed_fail")
{
render_interaction({auto:true,skin:"favore",message:"Ooops! It failed."});
}
else if(response=="monsterhunt_started" || response=="monsterhunt_already")
{
if(!character.s.monsterhunt) return;
@@ -3286,6 +3294,10 @@ function npc_right_click(event){
render_interaction({auto:true,skin:"lionsuit",message:"This is your home server. Make sure to follow daily and nightly server events! Just click the time icon in the bottom left corner for the schedule!"})
}
}
if(this.role=="favors")
{
render_interaction({auto:true,skin:"favore",message:"Would you like to bless the entire server for 3 days?",button:"Yes! [1,200 Shells]",onclick:function(){ socket.emit('bless_server'); }});
}
if(this.role=="mcollector")
{
render_recipes("mcollector");