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

Windows stages with creatures?

Sebastian Ching

New Member
Joined
Dec 26, 2007
Messages
314
Reaction score
4
Location
Rio grande, rs, Brazil
Yo otlanders, i m thinking in a script that will be weird, i m talking about a script that make you kill for exemple from level 40 to level 41, you must to kill 5 dragons + 15 elfs and maybe some creature never killed in ot, this is because in maps exist many respawms never visited.
Will be nice too some talkactions that tell you what creatures you need kill.

Please i wanna this script in my ot, someone make it pleaseeeeeeeee :)
Thanks.
 
Last edited:
Just use creaturecripts, use onKill

Something like this
Lua:
local level=
{
	[{40, 41}] = {{monster = "dragon", count = 5, storage = 1001}, {monster = "elf", count 10, storage = 1002}}
}

function onKill(cid, target, lastHit)

	if not isPlayer(cid) then return true end
	if not isMonster(target) then return true end
	
	for lvl, p in pairs(level) do
		if getCreatureName(target):lower() == p.monster then
			if getPlayerLevel(cid) >= lvl[1] and getPlayerLevel(cid) < lvl[2] then

				local i = 0
				for i = 1, table.maxn(p) do
					i = i + p[i].count
				end

				local exp = (getExperienceForLevel(getPlayerLevel(cid) + 1) - getPlayerExperience(cid)) / i
				if getCreatureStorage(cid, p.storage) < 1 then return doCreatureSetStorage(cid, storage, 0) end

				if getCreatureStorage(cid, p.storage) < p.count then
					doCreatureSetStorage(cid, p.storage, getCreatureStorage(cid, p.storage) + 1)
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to kill " .. p.count - getCreatureStorage(cid, p.storage) .. " " .. p.monster .. (p.count - getCreatureStorage(cid, p.storage) < 2 and "." or "s."))
					doPlayerAddExperience(cid, exp)
				end
			end
		end
	end
	return true
end

I don't test it
 
Last edited:
Ontopic; That's not only possible, it easy to fix.

impossible, no one know xd
Only the guy with no experience would say that.

Just use creaturecripts, use onKill

Something like this
Lua:
local level=
{
	[{40, 41}] = {{monster = "dragon", count = 5, storage = 1001}, {monster = "elf", count 10, storage = 1002}}
}

function onKill(cid, target, lastHit)

	if not isPlayer(cid) then return true end
	if not isMonster(target) then return true end
	
	for lvl, p in pairs(level) do
		if getCreatureName(target):lower() == p.monster then
			if getPlayerLevel(cid) >= lvl[1] and getPlayerLevel(cid) < lvl[2] then

				local i = 0
				for i = 1, table.maxn(p) do
					i = i + p[i].count
				end

				local exp = (getExperienceForLevel(getPlayerLevel(cid) + 1) - getPlayerExperience(cid)) / i
				if getCreatureStorage(cid, p.storage) < 1 then return doCreatureSetStorage(cid, storage, 0) end

				if getCreatureStorage(cid, p.storage) < p.count then
					doCreatureSetStorage(cid, p.storage, getCreatureStorage(cid, p.storage) + 1)
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to kill " .. p.count - getCreatureStorage(cid, p.storage) .. " " .. p.monster .. (p.count - getCreatureStorage(cid, p.storage) < 2 and "." or "s."))
					doPlayerAddExperience(cid, exp)
				end
			end
		end
	end
	return true
end

I don't test it

It looks messy but good work!
 
in creaturescript i write <event type="login" name="experience" event="script" value="stagescreatures.lua"/>

having this error

[01/09/2010 01:26:45] [Warning - Event::loadScript] Cannot load script (data/creaturescripts/scripts/stagescreatures.lua)
[01/09/2010 01:26:45] data/creaturescripts/scripts/stagescreatures.lua:3: '}' expected near '10'
 
should be like that
lua file
Lua:
function onLogin(cid)
registerCreatureEvent(cid, "log")
return true
end
local level=
{
	[{40, 41}] = {{monster = "dragon", count = 5, storage = 1001}, {monster = "elf", count = 10, storage = 1002}}
}
 
function onKill(cid, target, lastHit)
 
	if not isPlayer(cid) then return true end
	if not isMonster(target) then return true end
 
	for lvl, p in pairs(level) do
		if getCreatureName(target):lower() == p.monster then
			if getPlayerLevel(cid) >= lvl[1] and getPlayerLevel(cid) < lvl[2] then
 
				local i = 0
				for i = 1, table.maxn(p) do
					i = i + p[i].count
				end
 
				local exp = (getExperienceForLevel(getPlayerLevel(cid) + 1) - getPlayerExperience(cid)) / i
				if getCreatureStorage(cid, p.storage) < 1 then return doCreatureSetStorage(cid, storage, 0) end
 
				if getCreatureStorage(cid, p.storage) < p.count then
					doCreatureSetStorage(cid, p.storage, getCreatureStorage(cid, p.storage) + 1)
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to kill " .. p.count - getCreatureStorage(cid, p.storage) .. " " .. p.monster .. (p.count - getCreatureStorage(cid, p.storage) < 2 and "." or "s."))
					doPlayerAddExperience(cid, exp)
				end
			end
		end
	end
	return true
end

creature.xml
Code:
<event type="kill" name="log" event="script" value="stagescreatures.lua"/>
<event type="login" name="tab" event="script" value="stagescreatures.lua"/>
 
dont work:( errors in console

[01/09/2010 01:52:05] The Forgotten Server, version 0.3.6 (Crying Damson)
[01/09/2010 01:52:05] Compiled with GNU C++ version 3.4.5 (mingw special) at Dec 24 2009, 10:39:30.
[01/09/2010 01:52:05] A server developed by Elf, slawkens, Talaturen, KaczooH, Lithium, Kiper, Kornholijo.
[01/09/2010 01:52:05] Visit our forum for updates, support and resources: http://otland.net.

[01/09/2010 01:52:05] >> Loading config (config.lua)
[01/09/2010 01:52:05] > Using plaintext encryption
[01/09/2010 01:52:05] >> Checking software version... up to date!
[01/09/2010 01:52:07] >> Fetching blacklist
[01/09/2010 01:52:08] >> Loading RSA key
[01/09/2010 01:52:08] >> Starting SQL connection
[01/09/2010 01:52:08] >> Running Database Manager
[01/09/2010 01:52:11] > Optimizing table: account_viplist... [success]
[01/09/2010 01:52:12] > Optimizing table: accounts... [success]
[01/09/2010 01:52:13] > Optimizing table: bans... [success]
[01/09/2010 01:52:13] > Optimizing table: environment_killers... [success]
[01/09/2010 01:52:14] > Optimizing table: global_storage... [success]
[01/09/2010 01:52:14] > Optimizing table: guild_invites... [success]
[01/09/2010 01:52:15] > Optimizing table: guild_ranks... [success]
[01/09/2010 01:52:15] > Optimizing table: guilds... [success]
[01/09/2010 01:52:16] > Optimizing table: house_auctions... [success]
[01/09/2010 01:52:16] > Optimizing table: house_data... [success]
[01/09/2010 01:52:17] > Optimizing table: house_lists... [success]
[01/09/2010 01:52:17] > Optimizing table: houses... [success]
[01/09/2010 01:52:17] > Optimizing table: killers... [success]
[01/09/2010 01:52:18] > Optimizing table: player_deaths... [success]
[01/09/2010 01:52:19] > Optimizing table: player_depotitems... [success]
[01/09/2010 01:52:21] > Optimizing table: player_items... [success]
[01/09/2010 01:52:22] > Optimizing table: player_killers... [success]
[01/09/2010 01:52:23] > Optimizing table: player_namelocks... [success]
[01/09/2010 01:52:23] > Optimizing table: player_skills... [success]
[01/09/2010 01:52:24] > Optimizing table: player_spells... [success]
[01/09/2010 01:52:24] > Optimizing table: player_storage... [success]
[01/09/2010 01:52:25] > Optimizing table: player_viplist... [success]
[01/09/2010 01:52:26] > Optimizing table: players... [success]
[01/09/2010 01:52:26] > Optimizing table: server_config... [success]
[01/09/2010 01:52:27] > Optimizing table: server_motd... [success]
[01/09/2010 01:52:27] > Optimizing table: server_record... [success]
[01/09/2010 01:52:28] > Optimizing table: server_reports... [success]
[01/09/2010 01:52:28] > Optimizing table: tile_items... [success]
[01/09/2010 01:52:29] > Optimizing table: tiles... [success]
[01/09/2010 01:52:30] >> Loading items
[01/09/2010 01:52:31] [Warning - Items::loadFromXml] Unknown slotType one-handed
[01/09/2010 01:52:31] >> Loading groups
[01/09/2010 01:52:31] >> Loading vocations
[01/09/2010 01:52:31] >> Loading script systems
[01/09/2010 01:52:31] [Warning - Weapons::registerEvent] Duplicate registered item with id: 7410
[01/09/2010 01:52:32] [Warning - MoveEvents::addEvent] Duplicate move event found: 30000

[01/09/2010 01:52:32] [Error - CreatureScript Interface]
[01/09/2010 01:52:32] data/creaturescripts/scripts/playerdeath.lua
[01/09/2010 01:52:32] Description:
[01/09/2010 01:52:32] (luaGetPlayerSlotItem) Player not found
[01/09/2010 01:52:32] >> Loading chat channels
[01/09/2010 01:52:32] >> Loading outfits
[01/09/2010 01:52:32] >> Loading experience stages
[01/09/2010 01:52:32] >> Loading monsters
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cannot load monster (Draken Abomination) file (data/monster/Draken Abomination.xml).
[01/09/2010 01:52:32] Info: failed to load external entity "data/monster/Draken Abomination.xml"


[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] DeathFan - Unknown spell name: hellcore
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/deathfan.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Insect Swarm - Unknown spell name: ultimate explosion
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/Insect Swarm.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Insect Swarm - Unknown spell name: hydra paralyze
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/Insect Swarm.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Insect Swarm - Unknown spell name: orshabaal berserk
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/Insect Swarm.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Undead Prospector - Unknown spell name: ultimate explosion
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/undead prospector.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Undead Prospector - Unknown spell name: orshabaal berserk
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/undead prospector.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Undead Prospector - Unknown spell name: hydra paralyze
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/8.54/undead prospector.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Bazir - Unknown spell name: drunkness
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/Demon Bosses/Bazir.xml)
[01/09/2010 01:52:32] [Error - Monsters::deserializeSpell] Bazir - Unknown spell name: plinkvis
[01/09/2010 01:52:32] [Warning - Monsters::loadMonster] Cant load spell. (data/monster/Demon Bosses/Bazir.xml)
[01/09/2010 01:52:33] >> Loading mods...
[01/09/2010 01:52:33] > Loading buypremium_command.xml... done.
[01/09/2010 01:52:33] > Loading changender_command.xml... done.
[01/09/2010 01:52:33] > Loading custommonsters.xml... done.
[01/09/2010 01:52:33] > Loading customspells.xml... done.
[01/09/2010 01:52:33] > Loading firstitems.xml... done.
[01/09/2010 01:52:33] > Loading guildWarSystem.xml.xml... done.
[01/09/2010 01:52:33] > Loading highscorebook.xml... done.
[01/09/2010 01:52:33] > 7 mods were loaded.
[01/09/2010 01:52:33] >> Loading map and spawns...
[01/09/2010 01:52:37] > Map size: 5000x5000.
[01/09/2010 01:52:37] > Map descriptions:
[01/09/2010 01:52:37] "Saved with Remere's Map Editor 1.1.11"
[01/09/2010 01:52:37] "SimOne MapEditor 0.5.5"
[01/09/2010 01:52:43] Duplicate uniqueId 40054
[01/09/2010 01:52:48] Duplicate uniqueId 55100
[01/09/2010 01:52:50] Duplicate uniqueId 40054
[01/09/2010 01:52:56] > Map loading time: 22.922 seconds.
[01/09/2010 01:52:57] [Warning] NpcSystem:
[01/09/2010 01:52:57] Parameter 'keyword_reply3' missing. Skipping...
[01/09/2010 01:52:57] [Warning] NpcSystem:
[01/09/2010 01:52:57] Parameter 'keyword_reply4' missing. Skipping...
[01/09/2010 01:52:58] [Spawn::addMonster] Cannot find "Demon Parrot"
[01/09/2010 01:52:58] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Oldrak.xml).
[01/09/2010 01:52:58] Info: failed to load external entity "data/npc/Oldrak.xml"


[01/09/2010 01:52:58] [Spawn::addMonster] Cannot find "Trosh"
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01144 / 01300 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01144 / 01300 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01144 / 01300 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01119 / 01304 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01119 / 01304 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01119 / 01304 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01143 / 01310 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01143 / 01310 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01143 / 01310 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01162 / 01313 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01162 / 01313 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01179 / 01314 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01179 / 01314 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01179 / 01314 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01109 / 01322 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01109 / 01322 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01167 / 01326 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01167 / 01326 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01201 / 01326 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01201 / 01326 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01201 / 01326 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01217 / 01332 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01193 / 01339 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01193 / 01339 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01220 / 01345 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01227 / 01345 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01199 / 01348 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01150 / 01356 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01150 / 01356 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01150 / 01356 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01160 / 01356 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01160 / 01356 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01217 / 01357 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01217 / 01357 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01164 / 01366 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01164 / 01366 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01199 / 01367 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01199 / 01367 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Spawns::loadFromXml] Dwarf Guard ( 01199 / 01367 / 008 ) spawntime cannot be less than 1 seconds.
[01/09/2010 01:52:58] [Warning - Npc::loadFromXml] Cannot load npc file (data/npc/Thorgrincormaya.xml).
[01/09/2010 01:52:58] Info: failed to load external entity "data/npc/Thorgrincormaya.xml"


[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (7)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1254)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1255)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1256)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1257)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1258)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1261)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1262)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1934)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1938)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1943)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1949)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1950)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1951)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1952)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1953)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1954)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1955)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1956)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1957)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1958)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1959)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1960)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1962)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1964)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1965)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1966)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1967)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1968)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1969)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1970)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1971)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1972)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1973)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1974)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1975)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1976)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1977)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1978)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1979)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1980)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1981)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1982)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1983)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1984)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1985)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1986)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1987)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (1988)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (2037)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (2038)
[01/09/2010 01:52:58] [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter (Flat 1, Area 42) (2039)
[01/09/2010 01:52:58] > Data parsing time: 2.203 seconds.
[01/09/2010 01:53:18] > Houses synchronization time: 19.641 seconds.
[01/09/2010 01:53:19] > Content unserialization time: 1.015 seconds.
[01/09/2010 01:53:19] >> Checking world type... PvP
[01/09/2010 01:53:19] >> Initializing game state modules and registering services...
[01/09/2010 01:53:20] > Global address: hypnotize.zapto.org
[01/09/2010 01:53:21] > Local ports: 7171 7172
[01/09/2010 01:53:21] >> All modules were loaded, server is starting up...
[01/09/2010 01:53:21] >> Hypnotize server Online!

[01/09/2010 01:54:00] Justin Bieber has logged in.
[01/09/2010 01:54:28] Justin Bieber has logged out.
[01/09/2010 01:54:30] Justin Bieber has logged in.
[01/09/2010 01:54:41] Justin Bieber has logged out.
[01/09/2010 01:54:43] Justin Bieber has logged in.
[01/09/2010 01:54:57] Justin Bieber has logged out.
[01/09/2010 01:55:00] Justin Bieber has logged in.
[01/09/2010 01:55:16] Justin Bieber has logged out.
[01/09/2010 01:55:18] Justin Bieber has logged in.
[01/09/2010 01:55:47] Justin Bieber has logged out.
[01/09/2010 01:55:49] Justin Bieber has logged in.
[01/09/2010 01:56:05] Justin Bieber has logged out.
[01/09/2010 01:56:07] Justin Bieber has logged in.
[01/09/2010 01:56:22] Justin Bieber has logged out.
[01/09/2010 01:56:24] Justin Bieber has logged in.



<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerLogin" event="script" value="login.lua"/>
<event type="kill" name="log" event="script" value="stagescreatures.lua"/>
<event type="login" name="tab" event="script" value="stagescreatures.lua"/>
<event type="joinchannel" name="GuildMotd" event="script" value="guildmotd.lua"/>
<event type="receivemail" name="Mail" event="script" value="mail.lua"/>
<event type="reportbug" name="SaveReportBug" script="reportbug.lua"/>
<event type="advance" name="AdvanceSave" event="script" value="advancesave.lua"/>
<event type="death" name="PlayerDeath" event="script" value="playerdeath.lua"/>

<event type="think" name="Idle" event="script" value="idle.lua"/>
<event type="think" name="SkullCheck" event="script" value="skullcheck.lua"/>
</creaturescripts>


function onLogin(cid)
registerCreatureEvent(cid, "log")
return true
end
local level=
{
[{40, 41}] = {{monster = "dragon", count = 5, storage = 1001}, {monster = "elf", count = 10, storage = 1002}}
}

function onKill(cid, target, lastHit)

if not isPlayer(cid) then return true end
if not isMonster(target) then return true end

for lvl, p in pairs(level) do
if getCreatureName(target):lower() == p.monster then
if getPlayerLevel(cid) >= lvl[1] and getPlayerLevel(cid) < lvl[2] then

local i = 0
for i = 1, table.maxn(p) do
i = i + p.count
end

local exp = (getExperienceForLevel(getPlayerLevel(cid) + 1) - getPlayerExperience(cid)) / i
if getCreatureStorage(cid, p.storage) < 1 then return doCreatureSetStorage(cid, storage, 0) end

if getCreatureStorage(cid, p.storage) < p.count then
doCreatureSetStorage(cid, p.storage, getCreatureStorage(cid, p.storage) + 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need to kill " .. p.count - getCreatureStorage(cid, p.storage) .. " " .. p.monster .. (p.count - getCreatureStorage(cid, p.storage) < 2 and "." or "s."))
doPlayerAddExperience(cid, exp)
end
end
end
end
return true
end


Thanks anyway
 
Last edited:
go to XML mapp, enter stages. Put 0 on exprate. example

Lua:
<?xml version="1.0" encoding="UTF-8"?>
<stages>
	<config enabled="1"/>
	<stage minlevel="1" maxlevel="5000" multiplier="0"/>
</stages>
 
Back
Top