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

What kind of scripts does people want?

JoccE

CopyLeft (ɔ)
Joined
Aug 26, 2007
Messages
3,418
Solutions
1
Reaction score
93
Location
Sweden, Stockholm
Post examples of what you want to be released

Simple scripts like 25-150 lines of code.

And i will try to release them to the public.
 
I'm looking for this script [ if you put Item id for example <2160> ,Rock above it Remove ,but Items do not remove so rock will still open untill item gonna alone <2160 >

HELP, HELP, HELP !!

THANKS !
 
Been looking for a decent lever - stone script for a while but nothing seems to be advanced enough for my needs.
Lever should remove the stone, put it back, move the creature/character blocking the stone position also stone should reappear in x time and lever should return to its original position.
 
Depends :p what do you need?

- - - Updated - - -

Lmao! nice , well ive been looking for 2-3 things , do you do Mods too? like kind of spells?

-1 !anal , (talkaction) you know what i mean , players have to face the right side and sstuff, it have to make babies ( so let me give you my actual script, works but pretty old, maybe you could re-script it, it doesnt do the damage, or take money :/)

-2 You do monsters?


-3 a highscore skull system, #1 highscore gets white skull, #2 gets yellow skull , #3 gets green skull , they all have X % protection damage and speed bonus.

If you do monsters let me know ive been searching for a custom monster but can't make it work :p , and if you do the mod thing, let me know it :p




Heres the sex script,
Code:
local combat = createCombatObject()
local condition = createConditionObject(CONDITION_DROWN)
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 20, 2000, -10)
setCombatCondition(combat, condition)

function onSay(cid, words, param)
sexProposal = getPlayerStorageValue(cid, 66600)
sexAccept = cid
noCondom = math.random(4)
aidsEffect = math.random(3)

	local playerPos = getCreaturePosition(cid)
	if getPlayerLookDir(cid) == 1 then 
		posDir = {x = playerPos.x + 1, y = playerPos.y, z = playerPos.z, stackpos = 253}
	elseif getPlayerLookDir(cid) == 2 then
		posDir = {x = playerPos.x, y = playerPos.y + 1, z = playerPos.z, stackpos = 253}
	elseif getPlayerLookDir(cid) == 3 then
		posDir = {x = playerPos.x - 1, y = playerPos.y, z = playerPos.z, stackpos = 253}
	else
		posDir = {x = playerPos.x, y = playerPos.y - 1, z = playerPos.z, stackpos = 253}
	end
	target = getThingfromPos(posDir)
	if isPlayer(target.uid) == TRUE then
		if getPlayerLookDir(target.uid) == getPlayerLookDir(cid)-2 then
			sameLookDir = TRUE
		elseif getPlayerLookDir(target.uid) == getPlayerLookDir(cid)+2 then
			sameLookDir = TRUE
		else
			sameLookDir = FALSE
		end
		if sameLookDir == TRUE then
			if getPlayerSex(target.uid) == getPlayerSex(cid) then
				doPlayerSendCancel(cid, 'Fag.')
				doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF)
			else
				if getPlayerGroupId(cid) > 3 and getPlayerGroupId(cid) >= getPlayerGroupId(target.uid) then
					sexProposal = cid
					sexAccept = target.uid
					allowSex = TRUE
				elseif target.uid == sexProposal then
					allowSex = TRUE
				else
					allowSex = FALSE
				end
				if allowSex == TRUE then
					if getPlayerStorageValue(sexProposal, 66660) > 0 or getPlayerStorageValue(sexAccept, 66660) > 0 then
						doSendAnimatedText(getCreaturePosition(sexProposal), 'Ahh, Ahh...', TALKTYPE_ORANGE_1)
						doSendMagicEffect(getPlayerPosition(sexProposal),CONST_ME_STUN)
						doSendAnimatedText(getThingPos(sexAccept), 'Ohh, Ohh!', TALKTYPE_ORANGE_1)
						doSendMagicEffect(getPlayerPosition(sexAccept),CONST_ME_STUN)
						setPlayerStorageValue(sexProposal, 66660, 0)
						setPlayerStorageValue(sexAccept, 66660, 0)
					else
						if noCondom == 3 then
							hurtMessage = 'You got AIDS.'
							partnerMessage = 'Your partner just got AIDS.'
							bothMessage = 'Both of you got AIDS.'
							if aidsEffect == 1 then
								proposalMessage = hurtMessage
								acceptMessage = partnerMessage
								hurtPlayer = sexProposal
							elseif aidsEffect == 2 then
								proposalMessage = partnerMessage
								acceptMessage = hurtMessage
								hurtPlayer = sexAccept
							else
								proposalMessage = bothMessage
								acceptMessage = bothMessage
								hurtPlayer = FALSE
							end
							doPlayerSendTextMessage(sexProposal, MESSAGE_INFO_DESCR, proposalMessage)
							doPlayerSendTextMessage(sexAccept, MESSAGE_INFO_DESCR, acceptMessage)
							if hurtPlayer == FALSE then
								doSendMagicEffect(getPlayerPosition(sexProposal),CONST_ME_YELLOW_RINGS)
								doCombat(0,combat,numberToVariant(sexProposal))
								doSendMagicEffect(getPlayerPosition(sexAccept),CONST_ME_YELLOW_RINGS)
								doCombat(0,combat,numberToVariant(sexAccept))
							else
								doSendMagicEffect(getPlayerPosition(hurtPlayer),CONST_ME_YELLOW_RINGS)
								doCombat(0,combat,numberToVariant(hurtPlayer))
							end
						elseif noCondom == 2 then
						payMessage = '\n^.^'
							if getPlayerSex(sexProposal) == 0 then
								childMother = sexProposal
								childFather = sexAccept
								motherMsg = payMessage
								fatherMsg = ""
							elseif getPlayerSex(sexProposal) == 1 then
								childMother = sexAccept
								childFather = sexProposal
								motherMsg = ""
								fatherMsg = payMessage
							else
								if getPlayerSex(sexAccept) == 0 then
									childMother = sexAccept
									childFather = sexProposal
									motherMsg = ""
									fatherMsg = payMessage
								else
									childMother = sexProposal
									childFather = sexAccept
									motherMsg = payMessage
									fatherMsg = ""
								end
							end
							doPlayerSendTextMessage(childFather, MESSAGE_INFO_DESCR, 'Congratulations, '..getCreatureName(childMother)..' had a child!' .. fatherMsg)
							doPlayerSendTextMessage(childMother, MESSAGE_INFO_DESCR, 'Congratulations, you had a child!' .. motherMsg)
							doSendMagicEffect(getPlayerPosition(childFather), CONST_ME_FIREWORK_YELLOW)
							doSendMagicEffect(getPlayerPosition(childMother), CONST_ME_FIREWORK_RED)
							if math.random(2) == 1 then
								childGender = "son"
								childGenderid = "6579"
							else
								childGender = "daughter"
								childGenderid = "9693"
							end
							doSetItemSpecialDescription(doPlayerAddItem(childMother,childGenderid,1),'It is a '..childGender..' of '..getCreatureName(childFather)..' and '..getCreatureName(childMother)..'. Baby was born on '..os.date('%A %B %d %X %Y', os.time())..'.')
							local gps = getPlayerItemCount(sexProposal, ITEM_GOLD)
							local pcs = getPlayerItemCount(sexProposal, ITEM_PLATINUM)
							local ccs = getPlayerItemCount(sexProposal, ITEM_CRYSTAL)
							if gps > 0 or pcs > 0 or ccs > 0 then
								doPlayerRemoveItem(sexProposal, ITEM_GOLD, gps)
								doPlayerRemoveItem(sexProposal, ITEM_PLATINUM, pcs)
								doPlayerRemoveItem(sexProposal, ITEM_CRYSTAL, ccs)
							end
						else
doCreatureSay(cid, 'Ahh, Ahh...', TALKTYPE_ORANGE_1)
							doSendMagicEffect(getPlayerPosition(sexProposal),CONST_ME_STUN)
doCreatureSay(cid, 'Ohh, Ohh!', TALKTYPE_ORANGE_1)
							doSendMagicEffect(getPlayerPosition(sexAccept),CONST_ME_STUN)
						end
					end
					setPlayerStorageValue(sexProposal, 66600, 0)
					setPlayerStorageValue(sexAccept, 66600, 0)
				else
					if getPlayerStorageValue(target.uid, 66600) == cid then
						doPlayerSendCancel(cid, 'You have already sent a sex proposal to '..getCreatureName(target.uid)..'.')
						doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF)
					else
						setPlayerStorageValue(target.uid, 66600, cid)
						doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have sent a sex proposal to '..getCreatureName(target.uid)..'.')
						doPlayerSendTextMessage(target.uid, MESSAGE_INFO_DESCR, getCreatureName(cid)..' wants to have sex with You.')
						doSendMagicEffect(getPlayerPosition(target.uid),CONST_ME_HEARTS)
					end
				end
			end
		else
			doPlayerSendCancel(cid, 'You must stand infront of your partner to have sex.')
			doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF)
		end
	else
		doPlayerSendCancel(cid, 'You can only have sex with players.')
		doSendMagicEffect(getPlayerPosition(cid),CONST_ME_POFF)
	end
	doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, words)
	return TRUE
end


Sorry if im asking much ^^' thanks for the answers =D
rep+

EDIT:: If you can make a fishing script, (can fish monsters , item, but i can set a % to EVERY item(simple chance setting please :D)) thanks ^^'
 
Last edited:
Gardening system - basically you grow plants, you have to add water to them etc, and when they reach their full growth level you can take the seeds and ingredients from them. You can develop this idea and make an alchemy system for the ingredients. I don't know if that would be simple though, but it would certainly be something original in the open tibia world.
 
Jocce, will you try to make my scripts? ;c

something like this?
You have to edit the IDs, messages and items yourself tho :P

Use Item -> Get text instructions script:
LUA:
local itemID = XXXX --Dragon Claw ID
local message = "To get XXXX addon use this command !YYYY" --Message when you click the item

function onUse(cid,item,fromPosition,itemEx,toPosition)
	if exhaustion.check(cid, 1337) == false then
		doPlayerSendTextMessage(cid, 4, message)
		exhaustion.set(cid, 1337, 10)
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can only do this each 10 sec!")
	end
end

the Say command -> get addon script: (Current IDs add full Citizen addons)


LUA:
local itemID = XXXX --Addon Item
local message = "You have recived the addon YYYYYY" --message
local female = 136 --female addon id
local male = 128 --male addon id

function onSay(cid, words, param)
	if(getPlayerItemCount(cid, itemID) > 0) then 
	doPlayerRemoveItem(cid, itemID, 1) 
		if(getPlayerSex(cid) == 0)then 
		doPlayerAddOutfit(cid, female, 3) 
		doPlayerSendTextMessage(cid, 4, message)
		else 
		doPlayerAddOutfit(cid, male, 3) 
		doPlayerSendTextMessage(cid, 4, message)
		end 
	end
end


Have not tried them :P Tell me if they work or not
 
Last edited:
something like this?
You have to edit the IDs, messages and items yourself tho :P

Use Item -> Get text instructions script:
LUA:
local itemID = XXXX --Dragon Claw ID
local message = "To get XXXX addon use this command !YYYY" --Message when you click the item

function onUse(cid,item,fromPosition,itemEx,toPosition)
	if exhaustion.check(cid, 1337) == false then
		doPlayerSendTextMessage(cid, 4, message)
		exhaustion.set(cid, 1337, 10)
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can only do this each 10 sec!")
	end
end

the Say command -> get addon script: (Current IDs add full Citizen addons)


LUA:
local itemID = XXXX --Addon Item
local message = "You have recived the addon YYYYYY" --message
local female = 136 --female addon id
local male = 128 --male addon id

function onSay(cid, words, param)
	if(getPlayerItemCount(cid, itemID) > 0) then 
	doPlayerRemoveItem(cid, itemID, 1) 
		if(getPlayerSex(cid) == 0)then 
		doPlayerAddOutfit(cid, female, 3) 
		doPlayerSendTextMessage(cid, 4, message)
		else 
		doPlayerAddOutfit(cid, male, 3) 
		doPlayerSendTextMessage(cid, 4, message)
		end 
	end
end


Have not tried them :P Tell me if they work or not

That was someone else request lol ;P, but i guess he'll like it :d
dunno how to spot one postt so i guess u have to scroll up :d
 
Back
Top