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

Quick look, fix this script

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
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
 
Wrong:
Lua:
local summon = Bog Raider

Correct:
Lua:
local summon = "Bog Raider"

Wrong:
Lua:
doCreateMonster("summon", pos)

Correct:
Lua:
doCreateMonster(summon, pos)
 
Back
Top