mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update game.js to add events for Scrollsmith and NPC right click support
This commit is contained in:
+13
@@ -2194,6 +2194,15 @@ function init_socket(args)
|
|||||||
}
|
}
|
||||||
else if(response=="magiport_failed") ui_log("Magiport failed","gray"),no_no_no(2);
|
else if(response=="magiport_failed") ui_log("Magiport failed","gray"),no_no_no(2);
|
||||||
else if(response=="revive_failed") ui_log("Revival failed","gray"),no_no_no(1);
|
else if(response=="revive_failed") ui_log("Revival failed","gray"),no_no_no(1);
|
||||||
|
else if(response=="scrollsmith_cant")
|
||||||
|
{
|
||||||
|
ui_log("Can't destat this item","gray")
|
||||||
|
}
|
||||||
|
else if(response=="scrollsmith_success")
|
||||||
|
{
|
||||||
|
ui_log("Spent " + data.gold.toLocaleString() + " gold","gray");
|
||||||
|
ui_log("De-statted the item","gray");
|
||||||
|
}
|
||||||
else if(response=="locksmith_cant")
|
else if(response=="locksmith_cant")
|
||||||
{
|
{
|
||||||
ui_log("Can't lock/unlock this item","gray")
|
ui_log("Can't lock/unlock this item","gray")
|
||||||
@@ -3257,6 +3266,10 @@ function npc_right_click(event){
|
|||||||
{
|
{
|
||||||
render_interaction({auto:true,dialog:"locksmith",skin:"asoldier"});
|
render_interaction({auto:true,dialog:"locksmith",skin:"asoldier"});
|
||||||
}
|
}
|
||||||
|
if(this.role=="scrollsmith")
|
||||||
|
{
|
||||||
|
render_interaction({auto:true,dialog:"scrollsmith",skin:"bsoldier"});
|
||||||
|
}
|
||||||
if(this.role=="compound")
|
if(this.role=="compound")
|
||||||
{
|
{
|
||||||
render_compound_shrine(1);
|
render_compound_shrine(1);
|
||||||
|
|||||||
Reference in New Issue
Block a user