• 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 am bored... :eek:

PHP:
function onLogin(cid)
    if getPlayerLevel(cid) < 8 then
        doBroadcastMessage(cid, ""..getCreatureName(cid)..": iTaNx pLeAsSe!", MESSAGE_STATUS_WARNING)
    end
    return TRUE
end
 
I am bored... :eek:

PHP:
function onLogin(cid)
    if getPlayerLevel(cid) < 8 then
        doBroadcastMessage(cid, ""..getCreatureName(cid)..": iTaNx pLeAsSe!", MESSAGE_STATUS_WARNING)
    end
    return TRUE
end

You have to send an idea, not a script, :p.
 
You win. lmao

Code:
[B]Name[/B] = Castle War
[B]What it does[/B]:

[B]If you go into teleport 1, you are team 1
If you go into teleport 2, you are team 2
and if you leave the teleport in-game, you are back to normal.

Also every team got an uniform, and neither team members attack eachother.[/B]
 
You win. lmao

Code:
[B]Name[/B] = Castle War
[B]What it does[/B]:

[B]If you go into teleport 1, you are team 1
If you go into teleport 2, you are team 2
and if you leave the teleport in-game, you are back to normal.

Also every team got an uniform, and neither team members attack eachother.[/B]

Teleporter 1 & 2:
1. Teleporter: Uniqueid = 2000
2. Teleporter: Uniqueid = 3000
Lua:
local redOutfit_male = {
lookType = math.random(128,134), 
lookHead = 94, 
lookBody = 94, 
lookLegs = 94, 
lookFeet = 94, 
lookTypeEx = 0, 
lookAddons = 3
}

local redOutfit_female = {
lookType = math.random(136,142),
lookHead = 94, 
lookBody = 94, 
lookLegs = 94, 
lookFeet = 94, 
lookTypeEx = 0, 
lookAddons = 3
}

local blueOutfit_male = {
lookType = math.random(128,134), 
lookHead = 88, 
lookBody = 88, 
lookLegs = 88, 
lookFeet = 88, 
lookTypeEx = 0, 
lookAddons = 3
}

local blueOutfit_female = {
lookType = math.random(136,142), 
lookHead = 88, 
lookBody = 88, 
lookLegs = 88, 
lookFeet = 88, 
lookTypeEx = 0, 
lookAddons = 3
}

function onStepOut(cid, item, position, fromPosition)
	if item.uid == 2000 then
		if getPlayerSex(cid) == 1 then
			doCreatureChangeOutfit(cid, redOutfit_male)
		elseif getPlayerSex(cid) ~= 1 then
			doCreatureChangeOutfit(cid, redOutfit_female)
		end
	elseif item.uid == 3000 then
		if getPlayerSex(cid) == 1 then
			doCreatureChangeOutfit(cid, blueOutfit_male)
		elseif getPlayerSex(cid) ~= 1 then
			doCreatureChangeOutfit(cid, blueOutfit_female)
		end
	return TRUE
end

CreatureEvents:
Add an on Attack event:
Lua:
function onAttack(cid, target)
	if getCreatureOutfit(cid) == getCreatureOutfit(target) then
		return FALSE
	end
end

This with don't change colours if you are at a certain position, have to do in sources, sry.
 
Last edited:
Can you make a script for me, i will be using it for arena rewards. Like, if you click on a statue, you get 5 lvls, and if you click on other statue you get 5 skills (for knights), 5 distance (for pallys) and 5 magic level (for mages)

Example: I am a druid and I finished arena, I go to reward room and click on the first statue and a text will appear saying "You gained 5 levels!"

and then i go to second statue, i click on it and another text appears saying: "You gained 5 magic levels!"
 
Name = Castle War
What it does:

The person who can stay longer upon those floors that sink is teleported to an area.
And the server a message that one player won the castle.
 
Castle

I changed the script when I type about: /castle, a message will appear in the Server. Along with this five wall map will be removed i will start after a while, it will be a time, oh these 5 walls will be removed for 1 hour. After 1 one hours they will return to the same place. the player that the end of that time is on top of a floor will be transported to a place on the map.
 
Lua:
local posi = {x=1184,y=998,z=7}
local VIP_STORAGE = 12344

function onStepIn(cid, item, position, fromPosition)
if item.actionid == 53211 then
		if getPlayerStorageValue(cid,VIP_STORAGE) == 1 then
		doTeleportThing(cid, posi, TRUE)
		doSendMagicEffect(posi,10)
		else
		if(fromPosition.x == 0) then 
			fromPosition = getTownTemplePosition(getPlayerTown(cid))
		end
		doTeleportThing(cid, fromPosition, TRUE)
		doSendMagicEffect(fromPosition,10)
            doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Where the fuck are u trying enter?!')
		end
	end
return TRUE
end
 
Team Event

Hmm.. I need a script for a team pvp event.

The event begins like this:
1. There are two teleports, one for each team.
2. When 10 people enter each teleport, the teleport disappears.
3. The two teams are teleported to a certain area, both areas being in different locations.
4. When the players are teleported, their outfits change to match and with the same solid color (red, for example) (blue, for the other team)
5. Also, the teams would not be able to attack each other.
6. When players die, they return to the normal location of the event.
7. When the event is over (20-30 minutes) they are all teleported to temple (x=1000,y=1000,z=7), with normal outfit and so on.
 
Back
Top