mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 13:40:13 -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");
|
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)
|
function donate(gold)
|
||||||
{
|
{
|
||||||
if(gold===undefined)
|
if(gold===undefined)
|
||||||
|
|||||||
Reference in New Issue
Block a user