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

The War Server v0.9

Keraxel

Ω Obfuscator Ω
Joined
Feb 2, 2008
Messages
941
Reaction score
5
Location
Republic of Poland
The War Server
Version: 0.9
Based on: http://otland.net/f18/forgotten-server-v0-3-1-pl2-crying-damson-22476/

Contains Data(map, scripts etc.), Sources and executable file compiled on Ubuntu Intrepid Ibex (8.10) i386.

Contain:
*No damage to the same outfits (Gelio)
*Teleport player to the temple after he will "die" (Keraxel)
* Frags as soul points - displayed on look (Keraxel)
*War Area Change - changing war area default time: 1h, configurable in data/globalevents/globalevents.xml*(Keraxel)
*2 Teams System (Keraxel)
*Configurable: team colors and many other things in data/lib/mine.lua (Keraxel)

Credits:
*The Forgotten Server Developers - distribution base* Keraxel - all war lua scipts* Gesior/Cipsoft GmBH - map
*Gelio - one piece of c++ code

TODO:
* Do all in Lua (waiting for new TFS with correctly working onAttack)
* Change database type to sqlite
* Do it cleaner :)

DLL Files:
http://otland.net/f18/opentibia-dll-files-v1-4b-1042/

Download:
war.zip

Regards,
Keraxel.
 
Last edited by a moderator:
dh6f5y.png
 
how it run?

Download, Unpack, Import database (schemaWithPlayers.sql), compile od add .exe from newest TFS and run.

CM Account: keraxel
CM Password: qwerty

Players log in at 1/1.

It's kind of confusing, you should make war players example for each vocation..
It's already done :eek: You have Master Sorcerer, Elder Druid, Royal Paladin and Elite Knight at 1/1.
 
plx write me how it make "compile od add .exe from newest TFS and run"
 
For killing players exp not up why is wrong?

Fast Fix:
data/lib/mine.lua
PHP:
--by slawkens
function doPlayerAddLevel(cid, amount)
	local newExp = 0
	local currentLevel = getPlayerLevel(cid)
	if(amount > 0) then
		newExp = getExperienceForLevel(currentLevel + amount) - getExperienceForLevel(currentLevel)
	else
		newExp = getExperienceForLevel(currentLevel) - getExperienceForLevel(currentLevel + amount)
	end

	return doPlayerAddExp(cid, newExp)
end

LEVEL_GAIN_FOR_KILL = 2

data/creaturescripts/scripts/mine/protect.lua
Under
Code:
doPlayerAddSoul(lastHitKiller, 1)
Add:
PHP:
			if getConfigValue('experienceByKillingPlayers') == "yes" then
				doPlayerAddLevel(cid, LEVEL_GAIN_FOR_KILL)
			end

It will be full fixed in 1.0. If you will find more issues or suggestions post it in this topic ;)
 
Gaaah :/
The last code is:
PHP:
 if getConfigValue('experienceByKillingPlayers') == "yes" then 
                doPlayerAddLevel(lastHitKiller, LEVEL_GAIN_FOR_KILL) 
            end
Now it should works correctly ;)
 
ok it work but when i kill other player lvl 150 or more i alweys got 2 lvls ;/ help
 
aff ok i waiting for this update (ps a jakz robic zeby sie lvl nie zapisywal po dedzie?)
 
Back
Top