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

[8.42] The War Server v1.2

I like the ot, but when I downloaded 1.0.1 theres an error connecting to the sql database.. and it closes.
 
In order to make the SD hotkeys work, try removing
PHP:
blocktype="solid"
from all runes in spells.xml
 
How can I make it so that players get experience when they should. I want to use experience, instead of LEVEL_GAIN_FOR_KILL.

Can I just type nil there, or??
 
How can I make it so that players get experience when they should. I want to use experience, instead of LEVEL_GAIN_FOR_KILL.

Can I just type nil there, or??

LEVEL_GAIN_FOR_KILL to nil and you can configure it here:
PHP:
if  tonumber(LEVEL_GAIN_FOR_KILL) == nil then
					gainLevel = math.floor(getPlayerLevel(cid) * 0.05) --here you can configure how many level will be added to killer(s)
				end
 
Hello. Maybe someone write me how to change the initial eq? (the amount of run in the backpack, etc.)
 
Hello. Maybe someone write me how to change the initial eq? (the amount of run in the backpack, etc.)

Do you use in-game account maker or website?

If in-game AAC:

If website AAC:

  • In your database find the char SAMPLES your site uses to make the players, and edit the items/attributes in them directly. They are usually called "Knight Sample", "Paladin Sample", etc.

If you dont use personal accounts but 1/1, 2/2 etc instead, then I think you're gonna have to change that stuff directly on every char of the database, or maybe ask someone who knows how to write SQL commands so you can execute a query and update the items on every player of "x" vocation, for each vocation.

Otherwise Idk :)

Cheers~
 
Hello. Maybe someone write me how to change the initial eq? (the amount of run in the backpack, etc.)

First, you need to disable the built-in items script/function (doPlayerAddEquipment)

Then, here's an example of my login.lua:

PHP:
function onLogin(cid)
	local loss = getConfigValue('deathLostPercent')
	if(loss ~= nil) then
		for i = PLAYERLOSS_EXPERIENCE, PLAYERLOSS_ITEMS do
			doPlayerSetLossPercent(cid, i, loss)
		end
	end

	registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
	registerCreatureEvent(cid, "PlayerDeath")
	registerCreatureEvent(cid, "Think")
	
		if getPlayerGroupId(cid) < 2 then

		if isSorcerer(cid) then
				
		doPlayerAddItem(cid, 8918, 1)
		doPlayerAddItem(cid, 8922, 1)
		local rand = math.random(1,4)
		if rand == 1 then
				doPlayerAddItem(cid, 8867, 1)
				elseif rand == 2 then
				doPlayerAddItem(cid, 8868, 1)
				elseif rand == 3 then
				doPlayerAddItem(cid, 8890, 1)
end
		doPlayerAddItem(cid, 9778, 1)
		doPlayerAddItem(cid, 7730, 1)
		doPlayerAddItem(cid, 6132, 1)
		doPlayerAddItem(cid, 2169, 1)
		doPlayerAddItem(cid, 2195, 1)
		doPlayerAddItem(cid, 2171, 1)
		
			local bag = doPlayerAddItem(cid, 2365, 1)
			addContainerWithItems(cid, 2004, 2293, 3, 20)
			addContainerWithItems(cid, 2001, 7590, 1, 20)
			addContainerWithItems(cid, 2002, 2274, 4, 20)
			addContainerWithItems(cid, 1999, 2278, 1, 20)
			
		local bag2 = doAddContainerItem(bag, 3939, 1)
		doAddContainerItem(bag2, 2286, 2)
		doAddContainerItem(bag2, 2305, 2)
		doAddContainerItem(bag2, 2262, 2)
		doAddContainerItem(bag2, 2208, 1)
		doAddContainerItem(bag2, 2165, 1)
		doAddContainerItem(bag2, 2167, 1)
		doAddContainerItem(bag2, 2214, 1)
		doAddContainerItem(bag2, 2168, 1)
		doAddContainerItem(bag2, 2169, 1)
		
		addContainerWithItems(cid, 2002, 2273, 1, 20)
		addContainerWithItems(cid, 2003, 2268, 3, 20)
		addContainerWithItems(cid, 2003, 2261, 3, 20)
		addContainerWithItems(cid, 2000, 2304, 4, 20)
		addContainerWithItems(cid, 2001, 2311, 10, 20)
		addContainerWithItems(cid, 2001, 2313, 6, 20)

		

		elseif isDruid(cid) then
local bag = doPlayerAddItem(cid, 2365, 1)
	doPlayerAddItem(cid, 8918, 1)
		doPlayerAddItem(cid, 8910, 1)
		local rand = math.random(1,2)
		if rand == 1 then
				doPlayerAddItem(cid, 8866, 1)
				elseif rand == 2 then
				doPlayerAddItem(cid, 8869, 1)
end
		doPlayerAddItem(cid, 9778, 1)
		doPlayerAddItem(cid, 7730, 1)
		doPlayerAddItem(cid, 6132, 1)
		doPlayerAddItem(cid, 2169, 1)
		doPlayerAddItem(cid, 2195, 1)
		doPlayerAddItem(cid, 2171, 1)
		
			addContainerWithItems(cid, 2004, 2293, 3, 20)
			addContainerWithItems(cid, 2001, 7590, 1, 20)
			addContainerWithItems(cid, 2002, 2274, 4, 20)
			addContainerWithItems(cid, 1999, 2278, 1, 20)
			
		local bag2 = doAddContainerItem(bag, 3939, 1)
		doAddContainerItem(bag2, 2286, 2)
		doAddContainerItem(bag2, 2305, 2)
		doAddContainerItem(bag2, 2262, 2)
		doAddContainerItem(bag2, 2208, 1)
		doAddContainerItem(bag2, 2165, 1)
		doAddContainerItem(bag2, 2167, 1)
		doAddContainerItem(bag2, 2214, 1)
		doAddContainerItem(bag2, 2168, 1)
		doAddContainerItem(bag2, 2169, 1)
		
		addContainerWithItems(cid, 2002, 2273, 1, 20)
		addContainerWithItems(cid, 2003, 2268, 3, 20)
		addContainerWithItems(cid, 2003, 2261, 3, 20)
		addContainerWithItems(cid, 2000, 2304, 4, 20)
		addContainerWithItems(cid, 2001, 2311, 10, 20)
		addContainerWithItems(cid, 2001, 2313, 6, 20)
		
	
		elseif isPaladin(cid) then
				doPlayerAddItem(cid, 2520, 1)
		doPlayerAddItem(cid, 7368, 100)
		local rand = math.random(1,4)
		if rand == 1 then
				doPlayerAddItem(cid, 8885, 1)
				elseif rand == 2 then
				doPlayerAddItem(cid, 8886, 1)
				elseif rand == 3 then
				doPlayerAddItem(cid, 8887, 1)
				elseif rand == 4 then
				doPlayerAddItem(cid, 8888, 1)
				end
		doPlayerAddItem(cid, 2498, 1)
		doPlayerAddItem(cid, 9777, 1)
		doPlayerAddItem(cid, 6132, 1)
		doPlayerAddItem(cid, 2169, 1)
		doPlayerAddItem(cid, 2195, 1)
		doPlayerAddItem(cid, 2171, 1)
		
local bag = doPlayerAddItem(cid, 2365, 1)
			addContainerWithItems(cid, 2004, 2293, 3, 20)
			addContainerWithItems(cid, 1988, 8472, 1, 20)
			addContainerWithItems(cid, 2002, 2274, 4, 20)
			addContainerWithItems(cid, 1999, 2278, 1, 20)
			
		local bag2 = doAddContainerItem(bag, 3939, 1)
		doAddContainerItem(bag2, 2286, 2)
		doAddContainerItem(bag2, 2305, 2)
		doAddContainerItem(bag2, 2262, 2)
		doAddContainerItem(bag2, 2208, 1)
		doAddContainerItem(bag2, 2165, 1)
		doAddContainerItem(bag2, 2167, 1)
		doAddContainerItem(bag2, 2214, 1)
		doAddContainerItem(bag2, 2168, 1)
		doAddContainerItem(bag2, 2169, 1)
		
		addContainerWithItems(cid, 2002, 2273, 1, 20)
		addContainerWithItems(cid, 2003, 2268, 3, 20)
		addContainerWithItems(cid, 2003, 2261, 3, 20)
		addContainerWithItems(cid, 2000, 2304, 4, 20)
		addContainerWithItems(cid, 2001, 2311, 10, 20)
		addContainerWithItems(cid, 2001, 2313, 6, 20)
		

		elseif isKnight(cid) then
				local rand = math.random(1,4)
				if rand == 1 then
				doPlayerAddItem(cid, 8906, 1)
				elseif rand == 2 then
				doPlayerAddItem(cid, 8907, 1)
				elseif rand == 3 then
				doPlayerAddItem(cid, 8908, 1)
				elseif rand == 4 then
				doPlayerAddItem(cid, 8909, 1)
				end
		doPlayerAddItem(cid, 8924, 1)
		local rand = math.random(1,5)
				if rand == 1 then
				doPlayerAddItem(cid, 8881, 1)
				elseif rand == 2 then
				doPlayerAddItem(cid, 8882, 1)
				elseif rand == 3 then
				doPlayerAddItem(cid, 8883, 1)
				elseif rand == 4 then
				doPlayerAddItem(cid, 8884, 1)
				elseif rand == 5 then
				doPlayerAddItem(cid, 2472, 1)
				end
		doPlayerAddItem(cid, 2493, 1)
		doPlayerAddItem(cid, 2470, 1)
		doPlayerAddItem(cid, 6132, 1)
		doPlayerAddItem(cid, 2169, 1)
		doPlayerAddItem(cid, 2195, 1)
		doPlayerAddItem(cid, 2171, 1)
		
local bag = doPlayerAddItem(cid, 2365, 1)
			addContainerWithItems(cid, 2000, 8473, 1, 20)
			addContainerWithItems(cid, 2001, 7620, 1, 20)
			addContainerWithItems(cid, 2002, 2274, 4, 20)
			
		local bag2 = doAddContainerItem(bag, 3939, 1)
		doAddContainerItem(bag2, 2286, 2)
		doAddContainerItem(bag2, 2305, 2)
		doAddContainerItem(bag2, 2262, 2)
		doAddContainerItem(bag2, 2208, 1)
		doAddContainerItem(bag2, 2165, 1)
		doAddContainerItem(bag2, 2167, 1)
		doAddContainerItem(bag2, 2214, 1)
		doAddContainerItem(bag2, 2168, 1)
		doAddContainerItem(bag2, 2169, 1)
		
		addContainerWithItems(cid, 2002, 2273, 1, 20)
		addContainerWithItems(cid, 2003, 2261, 3, 20)
		addContainerWithItems(cid, 2000, 2304, 4, 20)
		addContainerWithItems(cid, 2001, 2311, 10, 20)
		addContainerWithItems(cid, 2001, 2313, 6, 20)
		
		end
		
	end
	return TRUE
end
 
By the way, does anybody know how can I disable the thing which disables exp gain?

<merge>
 
Bug?
When trying to import SQL:

Code:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$

CREATE DEFINER = `root`@`localhost` TRIGGER  `thewarserver`.`ond' at line 1

- MySQL 5.0.67
 
Bug?
When trying to import SQL:

Code:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER $$

CREATE DEFINER = `root`@`localhost` TRIGGER  `thewarserver`.`ond' at line 1

- MySQL 5.0.67

Download xampp 1.6.6a and upgraide your PHPMyadmin to the newest version
 
When i create character on phpmyadmin succesfull and when i login to game, write a "connecting to world" and back me to character list. Why i have a this "error?". I need i private characters, who can help me? (please tell me - speak Polish =) ).
I wait for your help :p
 
How to make a normal exp gain for players sice in the serc only last one gets lvl and how to make normal death for players i mean disable this teleports ;o
 
Back
Top