• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Looking Quest for my Sparta Server

Mariuskens

Sword Art Online 2D-MMORPG
Joined
Nov 21, 2008
Messages
1,009
Reaction score
119
Location
Spain
GitHub
Olimpotibia
Looking Quest for my Sparta Server

Hi^^ Otland i make this thread because i need quest for my map RPG.

I want this:

1- Inquisition quest
2- Pits of inferno Quest
3- Zao Arena Quest or similar

And need Scripts :D

Thnx alot help for all years in Otland.net
 
action/scripts

zaoarena.lua
PHP:
function onUse(cid, item, frompos, item2, topos)
local portal_quest01_pos = {x = 33079, y = 31014, z = 2, stackpos = 2}
if item.uid == 32145 then
if item.itemid == 1946 then

player1pos = {x=1153, y=845, z=2, stackpos=253}
player1 = getThingfromPos(player1pos)

player2pos = {x=1154, y=845, z=2, stackpos=253}
player2 = getThingfromPos(player2pos)


  if player1.itemid > 0 and player2.itemid > 0 then

  player1level = getPlayerLevel(player1.uid)
  player2level = getPlayerLevel(player2.uid)


  questlevel = 120

  if player1level >= questlevel then

      queststatus1 = getPlayerStorageValue(player1.uid,6300)
      queststatus2 = getPlayerStorageValue(player2.uid,6300)
     

      if queststatus1 == -1 and queststatus2 == -1 then

    if 1==1 then
    demon1pos = {x=1141, y=863, z=3}
        demon2pos = {x=1141, y=865, z=3}
   
  doSummonCreature("Baron Brute", demon1pos)
  doSummonCreature("The Axeorcist", demon2pos)
 

    nplayer1pos = {x=1129, y=865, z=3}
    nplayer2pos = {x=1129, y=866, z=3}
   

  doSendMagicEffect(player1pos,2)
  doSendMagicEffect(player2pos,2)
 

  doTeleportThing(player1.uid,nplayer1pos)
  doTeleportThing(player2.uid,nplayer2pos)
  doCreateItem(9772,1,portal_quest01_pos)
  doCreateItem(9772,1,portal_quest01_pos)
 

    doSendMagicEffect(nplayer1pos,10)
    doSendMagicEffect(nplayer2pos,10)


    doTransformItem(item.uid,1945)

    else
    doPlayerSendCancel(cid,"Sorry, not possible.")
    end
  else
    doPlayerSendCancel(cid,"Sorry, not possible.")
  end
  else
  doPlayerSendCancel(cid,"Sorry, not possible.")
  end
  end
if item.uid == 32145 then
if item.itemid == 1945 then
doTransformItem(item.uid,1946)




end
end
return 1
end
end
end

creaturescripts/scripts

zaoarena
PHP:
monsters = {
        --["monste name"] = {["summon name"] = {pos = {x, y, z}, delay = milisegundos},
        ["The Axeorcist"] = {
                ["Menace"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["Fatality"] = {pos = {x=1141, y=866, z=3}, delay = 2000}
        },
        ["Fatality"] = {
                ["Coldheart"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["Incineron"] = {pos = {x=1141, y=866, z=3}, delay = 2000}
        },
        ["Incineron"] = {
                ["Coldheart"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["Incineron"] = {pos = {x=1141, y=866, z=3}, delay = 2000}
        },
        ["Incineron"] = {
                ["Dreadwing"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["Doomhowl"] = {pos = {x=1141, y=866, z=3}, delay = 2000}
        },
        ["Incineron"] = {
                ["Haunter"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["The Dreadorian"] = {pos = {x=1141, y=866, z=3}, delay = 2000}
        },
        ["The Dreadorian"] = {
                ["Rocko"] = {pos = {x=1141, y=863, z=3}, delay = 2000},
                ["Tremorak"] = {pos = {x=1141, y=866, z=3}, delay = 2000},
                ["Tirecz"] = {pos = {x=1141, y=866, z=3}, delay = 30000}
        }

}

function onDeath(cid, corpse, killer)
        local summons = monsters[getCreatureName(cid)]
        if summons then
                for i, v in pairs(summons) do
                        addEvent(doSummonCreature, v.delay, i, v.pos)
                end
        end
        return TRUE
end

in creaturescripts.xml

Code:
            <!--Zao Arena -->
    <event type="death" name="zaoarena" event="script" value="zaoarena.lua"/>

in actions.xml

Code:
        <!-- Zao Arena -->   
    <action uniqueid="32145" event="script" value="quests/zao arena.lua"/>
 
Back
Top