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

Many different request! Come here if u want a rep:P

GodSebbe

Banned User, reason: To Sexy
Joined
Apr 16, 2011
Messages
846
Reaction score
123
Location
Sweden
Hello everyone! I'm asking for alots of the required scripts to almost finish my ot, Devolera. ( with the scripting! )

[WEDDING DOOR]: A door you only can enter if you're married. Reward: 1 reb DONE: [YES (GigaStar)]
[PRESTIGE/REBIRTH DOOR]: A door you only can enter if you're XX prestige/rebirth. Reward: 1 reb DONE: [NO]
[SPELL DAMAGE]: http://otland.net/f16/spell-damage-help-165285/. Reward: 1 reb DONE: [YES] (I DON'T REMEMBER)
[HEALING HP/MANA TILE] whenever you walk on 9 specific tiles they heal your mana/health to max. Reward: 1 reb DONE: YES (Loney)
[Player Reward] Whenever a player reach a specific level he gets a specific item. Reward: 1 reb DONE: [YES] (Evan)
[Player reward2] Whenever a player reaches a specific Prestige/Rebirth he gets a specfic item. Reward: 1 reb DONE: [NO]

- - - updated - - -
[Smithing] You put the required items on a anvil then pull a lever, It takes time before the item are done, so the player has to stand there an wait, 2 min. Then the player get the crafted item on the anvil.
Example:

I'm going to create a royal helmet!
Failure: I got 3 pieces of royal steel, and 3 chicken feathers. Put the items on the anvil, pull the lever. Then green text comes "You can't create anything with those items."

Success: I got 3 pieces of royal steel, and 2 chicken feathers. Put the items on the anvil, pull the lever. Royal helmet is a good item so you have to wait 5 min. Then after 5 min: Then white text comes "You have just created a royal helmet"
You also got fail chance, you wait the 5 min, then red text comes: "You failed to create a item."
When you've successed to make a item you get a letter how to make the item.
And if possible: The letter has a actionid or something, and the it's named after the item.
Example:
I create the royal helmet:
12:09 You see a Royal helmet recipe.
It weighs 0.50 oz.

And in the letter it also says who's created it.
Reward: 5 reb DONE: [NO]


_________________
I'm also want to hire a bumber. Bumps my thread every 24 hours. Reward: 1 reb DONE: [NO]

You can send to me in PM/Thread. ^^
I'll add more things whenever i get a new idea.
Thanks in advance, God Sebbe
 
Last edited:
Player Reward:

LUA:
local config = {
	levelReq = 100,
	item = 2160,
	count = 1,
	storage = 12345
	}

function onAdvance(cid, skill, oldLevel, newLevel)
	if getPlayerLevel(cid) >= config.levelReq and getPlayeStorageValue(cid, config.storage) ~= 1 then
		doPlayerAddItem(cid, config.item, config.count)
		setPlayerStorageValue(cid, config.storage, 1)
	end
	return TRUE
end

Pretty simple, play around with it.
 
Healing hp / mana tile:

Code:
function onThink(interval, lastExecution, thinkInterval)
local Tile={
[1]={x=1000,y=1000,z=7},
[2]={x=999,y=999,z=7},
[3]={x=1000,y=999,z=7},
[4]={x=1001,y=999,z=7},
[5]={x=999,y=1000,z=7},
[6]={x=1001,y=1000,z=7},
[7]={x=999,y=1001,z=7},
[8]={x=1000,y=1001,z=7},
[9]={x=1001,y=1001,z=7},
}

local Min,Max=99999999,99999999

for i=1,#Tile do
local thing = getThingFromPos({x=Tile[i].x, y=Tile[i].y, z=Tile[i].z, stackpos=253})
doSendMagicEffect(Tile[i],CONST_ME_TELEPORT)
if (isPlayer(thing.uid)) then
   doCreatureAddHealth(thing.uid, math.random(Min,Max))
   doCreatureAddMana(thing.uid, math.random(Min,Max))
end
end

return true
end

- - - Updated - - -

Marriage door:

Code:
local marrystatus = getOwnMarryStatus(fid)
 
local function doorEnter(cid, uid, id, position)
	doTransformItem(uid, id)
	doTeleportThing(cid, position, true)
	return true
end
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getOwnMarryStatus(fid) ~= 0) then
		return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Youre not married, so you shall not pass.")
	end
 
	return doorEnter(cid, item.uid, item.itemid + 1, toPosition)
end
 
Last edited:
Thank you, Justin & Loney. But the marriage door didn't work.
[Warning - Event::loadScript] Cannot load script (data/actions/scripts/devoleras/marriagedoor.lua)
 
Only throwed error?

Code:
local marrystatus = getOwnMarryStatus(fid)
 
local function doorEnter(cid, uid, id, position)
	doTransformItem(uid, id)
	doTeleportThing(cid, position, true)
	return true
end
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(getOwnMarryStatus(fid) ~= 1) then
		return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Youre not married, so you shall not pass.")
	end
 
	return doorEnter(cid, item.uid, item.itemid + 1, toPosition)
end
 
my bad, didn't see this:
[14/08/2012 09:48:43] [Error - Action Interface]
[14/08/2012 09:48:43] data/actions/scripts/devoleras/marriagedoor.lua
[14/08/2012 09:48:43] Description:
[14/08/2012 09:48:43] data/lib/050-function.lua:770: attempt to concatenate local 'player' (a nil value)
[14/08/2012 09:48:43] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/devoleras/marriagedoor.lua)
 
Marrage door

Code:
 --For this script to work you must make it so when they get married, there storage value gets set to the marrage storage.--

function onUse(cid, item, frompos, item2, topos)
local pos1 = {x = 1000, y = 1000, z = 7}  --Position threw the door
local pos2 = {x = 1001, y = 1000, z = 7}  --Position cannot enter
local marrage_storage = 5566443 -- You must choose this!

if	getPlayerStorage(cid) == marrage_storage then
	doTeleportThing(cid, pos1)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_GREEN, "Welcome to marrage land!")
	doSendMagicEffect(getPlayerPosition(cid), 5)
else
	doTeleportThing(cid, pos2)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must be married to enter here!")
end
return true
end
 
This is a.. first attempt:
function onUse(cid, item, fromPosition, itemEx, toPosition)

rebport = {x=223, y=223, z=7} <- change this to the position where player go when he can enter.

if item.uid == 1311 then
rebcheck = getPlayerStorageValue(cid,1036)
if rebcheck == 1036 then
doSendMagicEffect(topos, 12)
doTeleportThing(cid, rebport)
doSendMagicEffect(rebport, 12)
doPlayerSendTextMessage(cid, 22, "Rebirth area!")
else
doPlayerSendTextMessage(cid, 22, "You may not use this teleport before rebirth!")
end
end
 
Back
Top