• 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!

Questions abut script.

Zarn

New Member
Joined
Oct 19, 2009
Messages
108
Reaction score
0
Hello,
i looking after scritp help, i am looking after a !aol commands and bless command, when u sue it its will not show !aol in game its only added whit aol and whit bless i wont this classic holy coming over u body and its say u are blessed by the five gods,

and i have done 4 custom wands 2 of them works porfect but the other tow say 100 wands and one of dom dont shoot its like a clubb,

I have change in item.xml och wepond.xml on those 2 thats dont work like i wont, can some one help me and i will give u rep+

question nr 3,
Code:
[14/05/2010 22:57:41] [Warning - Spawns::loadFromXml] Frost Dragon ( 00130 / 00255 / 007 ) spawntime cannot be less than 1 seconds.

This error i get when i start the ot and i know what is mean its mean that a monster / animal is in 2 spawn and when i look in amp editor its not :blink:

Question 4 ^_^,

I get this error abut annih:
Code:
[Error - LuaScriptInterface::loadFile] data/actions/scripts/quests/annihilator.lua:5: '}' expected (to close '{' at line 1) near 'entry'
[14/05/2010 22:57:39] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/quests/annihilator.lua)
[14/05/2010 22:57:39] data/actions/scripts/quests/annihilator.lua:5: '}' expected (to close '{' at line 1) near 'entry'

But i have anni but jsut in other posison, and yes i have chnage those posison in (data/actions/scripts/quests/annihilator.lua)

How i fix this ?

Question 5, if i use this Action id 2000 and random unigui nummber and i have like 4 chest and i wont the player to just take one of the item how i do then ?

Thats was all for this time hope u can help me and get som Rep+ :thumbup:
 
#2
search for this;
Code:
local config = {
	daily = "no", -- allow only one enter per day? (like in global Tibia)
	level = 100,
	storage = 30015,
	entry =
	{
		{x = 247, y = 659, z = 13},
		{x = 247, y = 660, z = 13},
		{x = 247, y = 661, z = 13},
		{x = 247, y = 662, z = 13}
	}
	destination =
	{
		{x = 189, y = 650, z = 13},
		{x = 189, y = 651, z = 13},
		{x = 189, y = 652, z = 13},
		{x = 189, y = 653, z = 13}
	}
}
replace with this
Code:
local config = {
	daily = "no", -- allow only one enter per day? (like in global Tibia)
	level = 100,
	storage = 30015,
	entry =
	{
		{x = 247, y = 659, z = 13},
		{x = 247, y = 660, z = 13},
		{x = 247, y = 661, z = 13},
		{x = 247, y = 662, z = 13}
	},
	destination =
	{
		{x = 189, y = 650, z = 13},
		{x = 189, y = 651, z = 13},
		{x = 189, y = 652, z = 13},
		{x = 189, y = 653, z = 13}
	}
}
the one who made this script missed a "," before the "}"
 
Code:
local config = {
	daily = "no", -- allow only one enter per day? (like in global Tibia)
	level = 100,
	storage = 30015,
	entry =
	{
		{x = 403, y = 159, z = 7},
		{x = 402, y = 159, z = 7},
		{x = 401, y = 159, z = 7},
		{x = 400, y = 159, z = 7}
	},
	destination =
	{
		{x = 394, y = 180, z = 7},
		{x = 393, y = 180, z = 7},
		{x = 392, y = 180, z = 7},
		{x = 391, y = 180, z = 7}
	}
}

config.daily = getBooleanFromString(config.daily)
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		if(config.daily) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
		else
			doTransformItem(item.uid, item.itemid - 1)
		end

		return true
	end

	if(item.itemid ~= 1945) then
		return true
	end

	local players = { }
	for _, position in ipairs(config.entry) do
		local pid = getTopCreature(position).uid
		if(pid == 0 or not isPlayer(pid) or getCreatureStorage(pid, config.storage) > 0 or getPlayerLevel(pid) < config.level) then
			doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
			return true
		end

		table.insert(players, pid)
	end

	for i, pid in ipairs(players) do
		doSendMagicEffect(config.entry[i], CONST_ME_POFF)
		doTeleportThing(pid, config.destination[i], false)
		doSendMagicEffect(config.destination[i], CONST_ME_ENERGYAREA)
	end

	doTransformItem(item.uid, item.itemid + 1)
	return true
end
 
Back
Top