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

Lua 2 scripts

Erexo

Kage
Premium User
Joined
Mar 27, 2010
Messages
743
Solutions
5
Reaction score
200
Location
Pr0land
GitHub
Erexo
Hello,
im looking for a "summoning" script,
its in spells, and when you say "summon", do this:
Sorcerer (voc 1) summon 3dragons
Druid (voc 2) summon 3rats
Knight (voc 3) summon 3fire elemental
Palladin (voc 4) summon 3 vampire
MS (voc 5) summon 3dragon lords
ED (voc 6) summon 3cave rats.
And when summon it, cant summon more (3 is max).

2 script is a "medic pills" script,
what it makes:
-Add 500hp
-Add 500mana
-Add magic effect (const_me_puff)
-Exhaused for healing spells

rep++ :)

Thanks,
Erexo

PS:
sorry for my english ^^
 
2-
LUA:
local heal = 500
function onUse(cid, item, fromPosition, itemEx, toPosition)
ppos = getPlayerPosition(cid)
doPlayerAddMana(cid,heal)
doCreatureAddHealth(cid,heal)
doSendMagicEffect(ppos, CONST_ME_POFF)
doRemoveItem(item.uid,1)
return true
end

XML:
<action itemid="xxxx" event="script" value="magic pill.lua"/>
 
Someone can help me? -.^
I hange monsters for bunshins, ninjas, cyborgs and cursed skeletons...


@santigggg
You scripts doesnt work ;( (but rep+)
 
Mine should work man.
If there are errors please post them, btw about the summoning thing, Cyko fixed it and I think it works
LUA:
local t = {
	[1] = 'dragon',
	[2] = 'rat',
	[3] = 'fire elemental',
	[4] = 'vampire',
	[5] = 'dragon lord',
	[6] = 'cave rat'
}
 
function onSay(cid, words, param, channel)
	local v = t[getPlayerVocation(cid)]
	if v then
		local n = #getCreatureSummons(cid)
		if n < 3 then
			for i = 1, 3 - n do
				doSummonCreature(cid, v)
			end
		else
			doPlayerSendCancel(cid, 'You can only summon 3 monsters.')
		end
		return true
	end
end
 
Last edited:
Mine should work man.
If there are errors please post them, btw about the summoning thing, Cyko fixed it and I think it works
LUA:
	[1] = 'dragon',
	[2] = 'rat',
	[3] = 'fire elemental',
	[4] = 'vampire',
	[5] = 'dragon lord',
	[6] = 'cave rat'
}
 
function onSay(cid, words, param, channel)
	local v = t[getPlayerVocation(cid)]
	if v then
		local n = #getCreatureSummons(cid)
		if n < 3 then
			for i = 1, 3 - n do
				doSummonCreature(cid, v)
			end
		else
			doPlayerSendCancel(cid, 'You can only summon 3 monsters.')
		end
		return true
	end
end

Check it again
 

Similar threads

Back
Top