• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Multiple Action Scripts

gigastar

Member
Joined
Jan 25, 2009
Messages
253
Reaction score
15
Code:
--EXP rune based on permium... All changeable :) enjoy--
--Made by gigastar--
function onUse(cid, item, frompos, item2, topos)
if getPlayerPremiumDays(cid, 3) then 
doPlayerRemovePremiumDays(cid, 3)
doPlayerAddExperience(cid, 1600000)
doCreatureSay(uid, EXP, RED)
doSendMagicEffect(pos, 15)
doPlayerRemoveItem(cid, 2267, 1)
else
if getPlayerPremiumDays(cid, 2 or 1) then
doPlayerSendCancel(cid, "Sorry, You do not have enough premium days left.")
end
return 1
end
end
---------------------------------------------------------------------------------------------------------------
Code:
--Manarune Magic level/level based change what you know how to change--
--Made by gigastar--
local mag = getplayermagiclevel(cid)
local level = getplayerlevel(cid)
function onUse(cid, item, frompos, item2, topos)
if getplayerlevel(cid) >= 1 then
   table {
	min = (level) * (magic) - 50
	max = (level * (magic) }
	doplayeraddmana(cid) min or max
	doplayersendmagiceffect(cid, 15)
	end
	return 1
	end
------------------------------------------------------------------------------------------------------------------
Code:
--teleport player using a scroll--
--Made by gigastar--
local place = {X = 1243, Y = 1656, Z = 7}
function onUse(cid, item, frompos, item2, topos)
if item.uid = 14545 then
   doteleportcreature(place)
   dosendanimatedtext(pos, 12)
   dosendanimatedtext(pos, Welcome to Vip island)
   else
   doplayersendcancel(this isnt the right scroll)
   end
   return 1
   end
   end



Inside actions.xml

Code:
<action itemid="2267" event="script" value="tools/exp rune.lua"/>
<action itemid="2267" event="script" value="tools/manarune.lua"/>
<action itemid="2267" event="script" value="tools/Vip rune.lua"/>
 
Back
Top