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

Simple arena script, need one function;

Rielx

FOOL
Joined
Aug 23, 2010
Messages
67
Reaction score
1
I need help finishing this script;
I'm not really good at making loop functions:

Code:
function onDeath(cid, corpse, killer)

local summonpos = {x=635, y=904, z=6}

local monsters1 = 
{--greenhorn
"Frostfur",
"Bloodpaw",
"Bovinus",
"Achad",
"Colerian the Barbarian",
"The Hairy One",
"Axeitus Headbanger",
"Rocky",
"Cursed Gladiator",
"Orcus the Cruel"
}



	if monster1[i] == getCreatureName(cid) then
			if monster1[i] ~= "Orcus the Cruel" then doSummonCreature(monster1[i+1], summonpos)
			
			else
			--teleport player to reward room
			end
	end



return true
end


All it need is to loop till it matches: if monster1 == getCreatureName(cid)
 
Last edited:
Back
Top