I've tried to use TakeMoneyFromPP() in Lua, in several different scripts and can't seem to get it working. I'm using an EQEMU version from October. Perhaps I'm just doing it wrong.
Example from global\global_player.lua (there is no global_player.pl):
Code:
function event_enter_zone(e)
if(e.self:GetName() == "Raccoon") then
if(e.self:TakeMoneyFromPP(1000, true)) then
e.self:Message(14,"Thanks for the cash!")
else
e.self:Message(14,"You're broke, sucker!")
end
end
end