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

0.2.12 rev. 844[modules.lua+global.lua]

Ot.Security

New Member
Joined
Jul 14, 2008
Messages
17
Reaction score
0
Location
Germany
The modules.lua and global.lua at 0.2.12 rev. 844 the same as 0.2.13 rev. 866? I searched a long time and don't found a answer. It's important for my server please answer. i talked to many scripters nobody had a answer.
i want replace the modules.lua and global.lua of 0.2.12 rev. 844 to 0.2.13 rev. 866, It's possible?
 
Try it, and if you've got any errors, replace it with the old one again.
 
i edited my modules.lua and my global.lua 5 min. ago. My question now:

Between a "end" and a new function must being a space?

i edited my modules.lua and my global.lua 5 min. ago. My question now:

Between a "end" and a new function must being a space?

u know what i mean?
 
Last edited by a moderator:
Code:
endfunction xxx

If you mean something like this - then YES, there's need a space :p

If you mean more space = "ENTER" then NO, there's no need a space if there's already something like this:
Code:
end
function xxx
 
okay ty!
i mean like this:

Code:
function ShopModule:buyContainer(names, container, itemid, cost, charges, realname)
		for i, name in pairs(names) do
			local parameters = {
			        container = container,
					itemid = itemid,
					cost = cost,
					charges = charges,
					eventType = SHOPMODULE_BUY_CONTAINER,
					module = self
				}
			if(realname ~= nil) then
				parameters.realname = realname
			end
			if(isItemRune(itemid) == TRUE or isItemFluidContainer(itemid) == TRUE) then
				parameters.charges = charges
			end
			keywords = {}
			table.insert(keywords, name)
			local node = self.npcHandler.keywordHandler:addKeyword(keywords, ShopModule.tradeItem, parameters)
			node:addChildKeywordNode(self.yesNode)
			node:addChildKeywordNode(self.noNode)
		end
	end
	function ShopModule:addBuyableItem(names, itemid, cost, charges, realname)
		for i, name in pairs(names) do
			local parameters = {
					itemid = itemid,
					cost = cost,
					eventType = SHOPMODULE_BUY_ITEM,
					module = self
				}
			if(realname ~= nil) then
				parameters.realname = realname
			end
			if(isItemRune(itemid) == TRUE or isItemFluidContainer(itemid) == TRUE) then
				parameters.charges = charges
			end
			keywords = {}
			table.insert(keywords, name)
			local node = self.npcHandler.keywordHandler:addKeyword(keywords, ShopModule.tradeItem, parameters)
			node:addChildKeywordNode(self.yesNode)
			node:addChildKeywordNode(self.noNode)
		end
	end


Code:
	     end
	end
	function ShopModule:addBuyableItem(names, itemid, cost, charges, realname)


need space?
 
Last edited:
As I said - no. But of course would be better to your eye to be there was 1 enter : D It alwaus look better
 
Back
Top