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

Lua Script!

Natan Beckman

Well-Known Member
Joined
Aug 1, 2010
Messages
548
Reaction score
54
Location
Teresina-PI/Br
I need a script of portal that you go if have this storage: 32500

Not found \/


LUA:
-----------Sasiros Mistrzunius Pvpos !



function onStepIn(cid, item, pos)
local config = {
bosspos = {
{x=32883,y=32580,z=4}, -- position where yakchal first spawns
},
boss = "tiquandas revenge", -- name of the boss
}



local thais = {x=32888, y=32580, z=4}
local thaiss = {x=32876, y=32583, z=7}

    if item.actionid == 16335 and getPlayerStorageValue (cid, 32500) == 1 and getPlayerStorageValue (cid, 32500) == -1 then 
		doTeleportThing(cid,thais)
        doSendMagicEffect(getCreaturePosition(cid),10)
		doCreatureSay(cid, 'You have ten minutes to kill and loot this boss, else you will lose that chance and will be kicked out.', TALKTYPE_ORANGE_1)
		doPlayerSetStorageValue (cid, 32500, 1)
		doSummonCreature(config.boss, config.bosspos[1])
		elseif getPlayerStorageValue (cid, 32500) == -1 then
		doTeleportThing(cid,thaiss)
		doCreatureSay(cid, 'You did not complete the task Quest!', TALKTYPE_ORANGE_1)
		else
		doTeleportThing(cid,thaiss)
		doCreatureSay(cid, 'You already had a chance to kill Tiquandas Revange.', TALKTYPE_ORANGE_1)
		end	
    return 1
end
 
Back
Top