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

Telerport Monster Like Iqui.

manuveiu

New Member
Joined
Jun 22, 2010
Messages
73
Reaction score
1
I need a script that when the monster "Lizard abomination" dies he create a teleport to the reward room.. also.. i got a like problem if the reward chest too i need something similar to anihilator quest but if this items Elite Draken Helmet, Royal Draken Mail, or Royal Scale Robe the player only will get one of these also please i need one unique id that's not already in use.. i have the real server 2.2 please help!!!

Your Manu.
 
Lua:
local t = {
[6005] = {8002,"magic sword",2400},
[6006] = {8002,"demon armor",2494},
[6007] = {8002,"stonecutter axe",2431},
[6008] = {8002,"annihilation bear",2326}
}
 
function onUse(cid,item,fromPosition,itemEx,toPosition)
local v = t[item.uid]
      if getPlayerStorageValue(cid,v[1]) == -1 and getPlayerFreeCap(cid) >= (getItemWeightById(v[3])) then
         setPlayerStorageValue(cid,v[1],1)
               doPlayerAddItem(cid,v[3])
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You have found a " .. v[2] .. "!")
         elseif getPlayerStorageValue(cid,v[1]) == 1 then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "It is empty")
         elseif getPlayerFreeCap(cid) < (getItemWeightById(v[3])) then
               doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "You need " .. getItemWeightById(v[3]) .. ".00 oz in order to get the item")
                 end
     return true
end

[6005] = {8002,"magic sword",2400},
6005 -> UniqueID for chest
8002 -> storage, dont change it
Change name of item beetween " "
And 2326 -> Change for ItemID of the item you want

XML:
<action uniqueid="6005-6008" event="script" value="xxxxxx.lua"/>

About the other 1 :
http://otland.net/f82/kill-monster-create-portal-71245/
 
I have a script from inquisition quest.

put this is your creaturescripts.xml
Code:
	<event type="death" name="inquisitionPortals" script="teleports_inquisition.lua"/>

Make a new lua file called: inquisitionPortals in creaturescripts\scripts

Code:
function onDeath(cid, corpse, killer)

registerCreatureEvent(cid, "inquisitionPortals")

local creaturename = getCreatureName(cid)

local ushuriel_in_position = {x=246, y=351, z=12, stackpos=2}

local ushuriel_to_position = {x=172, y=559, z=13, stackpos=1}

local time_to_pass = 180
local tpID = 5023
local doEffect = CONST_ME_ENERGYHIT
local message = "You now have 3 minutes to exit this room through the teleporter. It will bring you to the next room only during his time or the teleporter will disappear."

if creaturename == 'Ushuriel' then

teleport = doCreateTeleport(tpID, ushuriel_to_position, ushuriel_in_position)

doSendMagicEffect(ushuriel_in_position, CONST_ME_ENERGYHIT)

doCreatureSay(cid, message, TALKTYPE_ORANGE_1)

addEvent(removeTeleportInUshurielWard, (1000*time_to_pass))


end
end

function removeTeleportInUshurielWard()
if getThingfromPos({x=246, y=351, z=12, stackpos=1}).itemid == 5023 then
doRemoveItem(getThingfromPos({x=246, y=351, z=12, stackpos=1}).uid,1)
doSendMagicEffect({x=246, y=351, z=12, stackpos=1}, CONST_ME_POFF)
return TRUE
end
end
 
Back
Top