mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-14 18:39:27 -05:00
Update functions.js to add toggle_merchant
This commit is contained in:
@@ -2848,6 +2848,15 @@ function close_merchant()
|
||||
return push_deferred("merchant");
|
||||
}
|
||||
|
||||
function toggle_merchant(num) {
|
||||
if(character.stand) {
|
||||
socket.emit("merchant",{close:1});
|
||||
} else {
|
||||
socket.emit("merchant",{num:num});
|
||||
}
|
||||
return push_deferred("merchant");
|
||||
}
|
||||
|
||||
function donate(gold)
|
||||
{
|
||||
if(gold===undefined)
|
||||
|
||||
Reference in New Issue
Block a user