• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Yalaharian Quest Last Mission Problem ! +1

ReDe

New Member
Joined
Mar 5, 2009
Messages
48
Reaction score
0
Heloo,I have a problem with the script to Yalaharian Quest last mission. Operating normally until the killing Azerus'a and entry into a teleport. I move and pops up an error in the engine :

Code:
[17/03/2010 10:55:02] [Error - Action Interface] 
[17/03/2010 10:55:02] data/actions/scripts/quests/azerus.lua:onUse
[17/03/2010 10:55:02] Description: 
[17/03/2010 10:55:02] (luaGetThingFromPos) Tile not found

Quest can be done to end, but for a long time you can not do it again. With regard to other players.

---------------------------------------------------------------
I still have one problem with the Bounty hunters because when the engine pops me an error.

Code:
[17/03/2010 10:51:35] [Error - LuaScriptInterface:: loadFile] can not open data / talkactions / scripts / bh-add.lua: No such file or directory
[17/03/2010 10:51:35] [Warning - Event: loadScript] Can not load script (date / talkactions / scripts / bh-add.lua)
[17/03/2010 10:51:35] can not open data / talkactions / scripts / bh-add.lua: No such file or directory

This file is only:
Code:
function onSay(cid, words, param)
if(param == "") then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] Use: \"!hunt [prize],[nick]\" where prize is for example 1(k).")
		return TRUE
	end
	local t = string.explode(param, ",")
	if(not t[2]) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] Use: \"!hunt [prize],[nick]\" where prize is for example 1(k).")
		return TRUE
	end
	
	local sp_id = getPlayerGUIDByName(t[2])
	if sp_id == nil then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] This player doesn't exists.")		
		return TRUE
	end
	
    local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..sp_id.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
		is = tonumber(result_plr:getDataInt("sp_id"))
		result_plr:free()
    else
		is = 0
    end
    prize = tonumber(t[1])

	if(prize == nil or prize < 1) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] Use: \"!hunt [prize],[nick]\" where prize is for example 1(k).")
		return TRUE
	end
	
	if(prize >= 100000000000000000000) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] Sorry, you typed too big number!")
		return TRUE
	end

	if is ~= 0 then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] This player has already hunted.")	
		return TRUE
	end
	
		if doPlayerRemoveMoney(cid, prize*1000) == TRUE then
		    db.executeQuery("INSERT INTO `bounty_hunters` VALUES (NULL,"..getPlayerGUID(cid)..","..sp_id..",0," .. os.time() .. ","..prize..",0,0);")
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] Hunt has been added!")			
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "[BOUNTY HUNTERS] You haven't got enough money!")			
		end
	
	
	return 1
end

Please for quick help in advance thanks
 
Back
Top Bottom