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

Erexo free Scripting Service (All) {Inspirated by Otswe}

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
741
Solutions
5
Reaction score
193
Location
Pr0land
GitHub
Erexo
Hello guys!
Otswe inspired me to start this topic.
Im not a pr0 lua scripter, anyways if someone have small script request i always can help :)

So feel free for asking, i can teach something too :)
 
Last edited:
Top Experiencia
(332) Pakotii
Exp: 599705812
(317) Tou Lombradinho
Exp: 525192104
(315) Lynxzappa
Exp: 513141683
(309) Noviinha
Exp: 482798423
(307) Wolfsz
Exp: 475123017
Top Frags
(309) Noviinha
Frags: 393x
(281) Chegadinhoo
Frags: 258x
(245) Amigos
Frags: 251x
(317) Tou Lombradinho
Frags: 251x
(306) Tittyz
Frags: 234x
Top Deaths
(49) Enix Pally
Deaths: 112x
(306) Tittyz
Deaths: 96x
(239) Druidx
Deaths: 94x
(317) Tou Lombradinho
Deaths: 83x
(273) Dalai Lama
Deaths: 73x
Top Money
(240) Mage Roots
GPs: 7853816
(246) Bob Marley
GPs: 7304309
(204) Kinao Blocker
GPs: 4000000
(250) Nikki
GPs: 3339566
(178) Jah
GPs: 3339178
in gesior put latestnews.php

ex: www.powerot.com.br
 
Make me a script that when you click turn off a wall lamp (9749- on 9750- off) it opens up a staircase at a location for 30 seconds, then the light turns back on and the staircase disappears.
 
lol just addEvent, very simple
ex:
Lua:
addEvent(function, 30 * 1000, paramaters)

would be best to create a function that turns the light back on and makes the staircase dissapear then set an addEvent to that
 
Last edited:
I want an Npc,That Could Change Tokens For Item Id -----
Example : I Would like to Change 20 Tokens For Magic Plate Armor..
For Example..
 
I want an Npc,That Could Change Tokens For Item Id -----
Example : I Would like to Change 20 Tokens For Magic Plate Armor..
For Example..

Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}

function onCreatureAppear(cid)				npcHandler:onCreatureAppear(cid)			end
function onCreatureDisappear(cid)			npcHandler:onCreatureDisappear(cid)			end
function onCreatureSay(cid, type, msg)			npcHandler:onCreatureSay(cid, type, msg)		end
function onThink()					npcHandler:onThink()					end

function creatureSayCallback(cid, type, msg)
	if(not npcHandler:isFocused(cid)) then
		return false
	end
	local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid

	if(msgcontains(msg, 'mpa') or msgcontains(msg, '10 tokens')) then
		if getPlayerItemCount(cid,XXXX) >= 10 then
			doPlayerRemoveItem(cid,XXXX,10)
			selfSay('Okey, here you are!', cid)
			doPlayerAddItem(cid,YYYY,1)
			talkState[talkUser] = 0
		
		else
		selfSay('You dont have enought tokens!', cid)
		talkState[talkUser] = 0
		end

	elseif(msgcontains(msg, 'offer')) then
		selfSay('Here is my offer:', cid)
		selfSay('10 tokens = MPA', cid)
		selfSay('15 tokens = 5gp', cid)
		selfSay('20 tokens = lump of dirt', cid)
	end



	return true

end
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

Something like that (not tested but should work)
XXXX = token ID
YYYY = reward ID

I added also "offer" list, if you need u can easly add new items.
 
Top Experiencia
(332) Pakotii
Exp: 599705812
(317) Tou Lombradinho
Exp: 525192104
(315) Lynxzappa
Exp: 513141683
(309) Noviinha
Exp: 482798423
(307) Wolfsz
Exp: 475123017
Top Frags
(309) Noviinha
Frags: 393x
(281) Chegadinhoo
Frags: 258x
(245) Amigos
Frags: 251x
(317) Tou Lombradinho
Frags: 251x
(306) Tittyz
Frags: 234x
Top Deaths
(49) Enix Pally
Deaths: 112x
(306) Tittyz
Deaths: 96x
(239) Druidx
Deaths: 94x
(317) Tou Lombradinho
Deaths: 83x
(273) Dalai Lama
Deaths: 73x
Top Money
(240) Mage Roots
GPs: 7853816
(246) Bob Marley
GPs: 7304309
(204) Kinao Blocker
GPs: 4000000
(250) Nikki
GPs: 3339566
(178) Jah
GPs: 3339178
in gesior put latestnews.php

ex: Odilon World - Latest News

make this
 
is posible to make a script like a quest log? it might be a book showing getting some storage values and then saying to you the progress on that quest depending on the value, is possible?
 
I looking for scritp, when i said /emotespells on i turned on emotespells but when i said /emotespells off i have normal text spells.

I think its impossible without edit source, pretty nice question, ill think about it.

is posible to make a script like a quest log? it might be a book showing getting some storage values and then saying to you the progress on that quest depending on the value, is possible?

Sure its possible, tell me item id, all storages and story etc.
 
Back
Top