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

[Suggestions & Ideas] Post your script Idea!

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Hello all!
I decided to make this theard, and I hope it will be used untill "http://otland.net/f15/new-board-new-option-46864/index3.html" will be added in Lua & Xml, because we scripters need ideas!
So it's your turn, post your script ideas, :thumbup:.

Example:

Name: Name of script
What it does: comment what the script should does

Regards,
Shawak
 
Last edited:
i need a improved swimming system.
I wish that when the player entered the water, send a effect "doSendMagicEffect(getCreaturePosition(cid), 53)." :$

My script:
PHP:
local outfit = 
	{
	lookType = 267, 
	lookHead = 0, 
	lookBody = 0, 
	lookLegs = 0, 
	lookFeet = 0, 
	lookTypeEx = 0, 
	lookAddons = 0
	}

	function onStepIn(cid, item, position, fromPosition)
	if(isPlayer(cid)) then
	doSetCreatureOutfit(cid, outfit, -1)
		end
		return true
	end

function onStepOut(cid, item, position, fromPosition)
	doRemoveCondition(cid, CONDITION_OUTFIT)
end
 
#up; movements.xml
Replace this:
Code:
	<movevent event="StepIn" fromid="4620" toid="4625" script="swimming.lua"/>
	<movevent event="StepOut" fromid="4620" toid="4625" script="swimming.lua"/>
with this:
Code:
	<movevent event="StepIn" fromid="7943" toid="7954" script="swimming.lua"/>
Here's the script:
Code:
local outfit = {lookType = 267, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local conditions = {
	CONDITION_POISON, CONDITION_FIRE, CONDITION_ENERGY,
	CONDITION_PARALYZE, CONDITION_DRUNK, CONDITION_DROWN,
	CONDITION_FREEZING, CONDITION_DAZZLED, CONDITION_CURSED
}
local BORDERS = {
	[7943] = {x = 0, y = -2, back = SOUTH},
	[7944] = {x = -2, y = 0, back = EAST},
	[7945] = {x = 0, y = 2, back = NORTH},
	[7946] = {x = 2, y = 0, back = WEST},
	[7947] = {x = 2, y = 1, back = WEST},
	[7948] = {x = -2, y = 1, back = NORTH},
	[7949] = {x = 2, y = -1, back = WEST},
	[7950] = {x = -2, y = -1, back = EAST},
	[7951] = {x = 2, y = 2, back = WEST},
	[7952] = {x = -2, y = 2, back = NORTH},
	[7953] = {x = 2, y = -2, back = WEST},
	[7954] = {x = -2, y = -2, back = SOUTH}
}

function onStepIn(cid, item, position, fromPosition)
	if(isPlayer(cid) ~= TRUE) then
		return true
	end

	local border = BORDERS[item.itemid]
	if(not border) then
		return false
	end

	local pos, newPos = getCreaturePosition(cid), {}
	newPos = pos
	newPos.x = pos.x + border.x
	newPos.y = pos.y + border.y

	if(getCreatureCondition(cid, CONDITION_OUTFIT) == TRUE and getCreatureOutfit(cid).lookType == outfit.lookType) then
		doMoveCreature(cid, border.back)
		doRemoveCondition(cid, CONDITION_OUTFIT)
	else
		if(queryTileAddThing(cid, pos, 4) ~= RETURNVALUE_NOERROR) then
			return false
		end

		local tmp = getCreaturePosition(cid)
		doTeleportThing(cid, newPos)

		doSendMagicEffect(tmp, CONST_ME_POFF)
		doSendMagicEffect(newPos, CONST_ME_WATERSPLASH)

		for i, v in ipairs(conditions) do
			if(getCreatureCondition(cid, v) == TRUE) then
				doRemoveCondition(cid, v)
			end
		end
		doSetCreatureOutfit(cid, outfit, -1)
	end

	return TRUE
end
 
I dont think I'm asking for a complete server lol

I know people have scripts like this, I'm just hoping people release it for free xD
 
What about a spell, for druids, its just like exura sio
but instead of healing once, it heals x amount each second
for 10 seconds.
 
Hah, maybe this time.. =)

Code:
Name: Change group
What it do? If player is in group X and he loss some health (1+),
hes group is changed to another Y.

:D
 
I have a idea, for a spell. can somebody make it for me? i can't figure out how it will work. i have a 8.54 server.

Name: Rain of Healing
What it do? it shoots Holy distance effect to the upper left corners, then after a sec they fall down in an 5x5 circle around you and where it comes down it heals the people standing on that place.

<~Powie~>
 
I want help with a script that gives you an item if you're the last person in last man standing. I hope you know what i mean.

http://otland.net/f132/help-reward-80034/#post823063


Also, working on this:
Name: Rain of Healing
What it do? it shoots Holy distance effect to the upper left corners, then after a sec they fall down in an 5x5 circle around you and where it comes down it heals the people standing on that place.
.. but it might be a while as my spare is almost finished.
 
Idea: Casino
Script: Slotmachine
What it should do: When pull the lever next the depot container a orange message "pop ups" and say "You won 100,000 gold! your money percentage lose's are 50 gold coins" and the money go's in depot container.
 
It is late inwhich iw ill not script it now, But you could make it on a storage value, Check if storagevalue onlogin. If have storage value, Sendcancelmessage "Your player is banned sorry menz", once run out set storage value 0.. KKSSSSSSSSSSSSSSSS
 
Back
Top