Mariuskens
Sword Art Online 2D-MMORPG
Check foto here:
I have idea ... I can reedit this script to use in wote quest (lever)
This is same of Mortal kombat with differents coordinates, but:
- I have a problem!!
--------
when I power lever quest (different unique id) teleports me correctly but, the monsters appear mortal kombat in mortal kombat quest not in the room wote:
I mean, I copy paste script, edit new coordinates (pederastals + waves)
=
I teleported right, monsters appear in MK arena.
Someone you should know?
I can do that in a 4x4 space the players that are in that square are teleported to the quest lever?
I have idea ... I can reedit this script to use in wote quest (lever)
local t, player = {
pedestals = {
{x=33357, y=31404, z=9},
{x=33362, y=31409, z=9}
},
newPos = {
{x=33358, y=31405, z=10},
{x=33361, y=31408, z=10}
},
area = {
fromX = 33351, toX = 33367,
fromY = 31399, toY = 31415,
z = 10
},
storageDone = 4799,
level = 80
},
{0, 0}
function getCreaturesInRange(position, radiusx, radiusy, showMonsters, showPlayers, showSummons)
local creaturesList = {}
for x = -radiusx, radiusx do
for y = -radiusy, radiusy do
if not (x == 0 and y == 0) then
creature = getTopCreature({x = position.x+x, y = position.y+y, z = position.z, stackpos = 253})
if (creature.type == 1 and showPlayers == TRUE) or (creature.type == 2 and showMonsters == TRUE and (showSummons == FALSE or (showSummons == TRUE and getCreatureMaster(creature.uid) == (creature.uid)))) then
table.insert(creaturesList, creature.uid)
end
end
end
end
local creature = getTopCreature(position)
if (creature.type == 1 and showPlayers == TRUE) or (creature.type == 2 and showMonsters == TRUE and (showSummons == FALSE or (showSummons == TRUE and getCreatureMaster(creature.uid) == (creature.uid)))) then
if not(table.find(creaturesList, creature.uid)) then
table.insert(creaturesList, creature.uid)
end
end
return creaturesList
end
function Wave1()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Fury of the Emperor', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave2, 60 * 1000)
end
function Wave2()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Lizard Abomination', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave3, 60 * 1000)
end
function Wave3()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Wrath of the Emperor', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave4, 60 * 1000)
end
function Wave4()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Scorn of the Emperor', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave5, 60 * 1000)
end
function Wave5()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Snake Thing', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave6, 60 * 1000)
end
function Wave6()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Mutated Zalamon', {x = 33364, y = 31402, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave7, 60 * 1000)
end
function Wave7()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Spite of the Emperor', {x = 33364, y = 31032, z = 10})), CONST_ME_TELEPORT)
addEvent(Wave8, 60 * 1000)
end
function Wave8()
doSendMagicEffect(getCreaturePosition(doCreateMonster('Snake God Essence', {x = 33065, y = 31034, z = 10})), CONST_ME_TELEPORT)
end
function onUse(cid, item, fromPosition, itemEx, toPosition)
local failed = false
for i = 1, #t.pedestals do
player = getTopCreature(t.pedestals).uid
if(not(player > 0 and isPlayer(player) == TRUE and getPlayerStorageValue(player, t.storageDone) < 1 and getPlayerLevel(player) >= t.level)) then
failed = true
break
end
end
if not failed then
if #getCreaturesInRange({x=33076, y=31175,z=8}, 10, 9, FALSE, TRUE) > 0 then
doPlayerSendTextMessage(cid,25, "Some people are already in the wrath of the emperor.")
return true
end
for i = 1, #player do
doTeleportThing(player, t.newPos)
end
Wave1()
doTransformItem(item.uid, 1946)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_CANNOTUSETHISOBJECT)
end
return true
end
This is same of Mortal kombat with differents coordinates, but:
- I have a problem!!
--------
when I power lever quest (different unique id) teleports me correctly but, the monsters appear mortal kombat in mortal kombat quest not in the room wote:
I mean, I copy paste script, edit new coordinates (pederastals + waves)
=
I teleported right, monsters appear in MK arena.
Someone you should know?
I can do that in a 4x4 space the players that are in that square are teleported to the quest lever?
Someone you should know?