Silentsniper
New Member
- Joined
- Sep 20, 2009
- Messages
- 81
- Reaction score
- 0
Can some one make it so that on step it, it will take 10cc, and it will only spawn a creature if you have a certain item? Thank you
The script is
The script is
Code:
--- 100% by rufo
-- Config
Summonpos = {x="XXXX", y="XXXX", z="X"} -- Pos where the monsters should summon
summon1 = Hunter -- Name of a monster
summon2 = Bandit -- Name of a monster
summon3 = Wild Warrior -- Name of a monster
summon = Smuggler -- Name of a monster
-- End config
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == TRUE and math.random(1, 26) == 1 then
doSummonCreature("summon", Summonpos)
elseif isPlayer(cid) == TRUE and math.random(1, 26) == 2 then
doSummonCreature("summon1", Summonpos)
elseif isPlayer(cid) == TRUE and math.random(1, 26) == 3 then
doSummonCreature("summon2", Summonpos)
elseif isPlayer(cid) == TRUE and math.random(1, 26) == 3 then
doSummonCreature("summon3", Summonpos)
end
return TRUE
end