All pastes #388078 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-03-09 20:41 UTC
rendered paste body
elseif action == GOSSIP_ACTION_INFO_DEF + 16 then
-- if the tostring line crashes server comment it out and try other line
LuaAI:DoSay(tostring(Player:GetMoney()), 0)
--LuaAI:DoSay(Player:GetMoney(), 0)
if (Player:GetMoney() >= 1000000) then
Player:SetMoney(Player:GetMoney() - 1000000)
query = "SELECT `position_x` , `position_y` , `position_z` , `orientation` , `map` FROM `game_tele` WHERE `name`= `xxx`";
tele1 = sDatabase:Query(query)
tele2 = tele1:Fecth(); 
player:TeleportTo(tele2[4], tele2[0], tele2[1] , tele2[2] , tele2[3], false, true );
end