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:
All it need is to loop till it matches: if monster1 == getCreatureName(cid)
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: