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

POI Thrones - short script

Xyzyk

RudziutOTS Maker
Joined
Jun 14, 2008
Messages
39
Reaction score
0
Location
Poland
How add in my script:
Code:
function onStepIn(cid, item, position)
	
	if (isPlayer(cid) == true) then
		setPlayerStorageValue(cid,storage,1)
		doCreatureSay(cid, 'You have touched '..lord..'\'s throne and absorbed some of his sprit.',TALKTYPE_ORANGE_1)
	end
	
	return true
end

function onStepOut(cid, item, position)

	if (isPlayer(cid) == true) then
		doTeleportThing(cid, newpos)
		doSendMagicEffect(newpos, 17)
		doCreatureSay(cid, 'Begone!',TALKTYPE_ORANGE_1)
	end
	
	return true
end

that for item.actionid 6711, lord = Ashfalor, storage = 11061, newpos = {x=position.x, y=position.y-3, z=position.z} and

for item.actionid 6712, lord = Bazir, storage = 11062, newpos = {x=position.x, y=position.y-2, z=position.z} and

for item.actionid 6713, lord = Pumin, storage = 11063, newpos = {x=position.x, y=position.y-3, z=position.z}?:blink:
 
LUA:
  local CONFIG =    {
    [56486]={storage = 19551, seal = "Verminor"},
    [56487]={storage = 19552, seal = "Infernatil"},
    [56488]={storage = 19553, seal = "Tafariel"},
    [56489]={storage = 19554, seal = "Apocalypse"},
    [56410]={storage = 19555, seal = "Pumin"},
    [56411]={storage = 19556, seal = "Bazir"},
    [56412]={storage = 19557, seal = "Ashfalor"}        
                  }

function onStepIn(cid, item, position, fromPosition)
    if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
        doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You have touched " .. CONFIG[item.actionid].seal .. "\'s throne and absorbed some of his sprit.")
        setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
    else
        doPlayerSendTextMessage(cid, TALKTYPE_BROADCAST, "You already have touched " .. CONFIG[item.actionid].seal .. "\'s throne and absorbed some of his sprit.")
    end
  return TRUE
end
script not made by me
put an action id on each throne on ur map
 
Back
Top