I'm shit with scripts, but knowing how to use this trigger is kinda useful, so I've got a question.
How can i check for money of a person thats on given tile?
Thanks in advance.
addhook("movetile", "movetilehook")
function movetilehook(id, x, y)
-- Checks if a player is in tile 1, 1
if (x == 1 and y == 1) then
-- Checks if a player has money more than $1000
if (player(id, "money") > 1000) then
-- Do your script
end
end
end