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

Request: need some scripts

LilleSnakz

Mapper
Joined
Jun 22, 2011
Messages
129
Reaction score
4
Location
finland
Im requesting now

a manarune

heals at [LVL]8 adds 100 mana and [LVL]500 adds1200.

Then how to make boots like softies adds mana and Hp?

after that i got problem whit account manager its dont give vocation :S how to fix ???
 
1) manarune
Lua:
local confg = {		--[lvl] = amount       ** You can add more <OR> remove extra also to suit your needs **
					[8] = 100,
					[50] = 200,
					[100] = 800
				}
--<< Script >>--
function getHealed(cid)
	local f = 0
	for lvl, hp in pairs(confg) do
		if getPlayerLevel(cid) > lvl then
			f = lvl
		else
			break
		end
	end
	return f
end	

function onUse(cid, item, fromPosition, itemEx, toPosition)
	doCreatureAddMana(cid,confg[getHealed(cid)])
	return true
end

2) boots like softies in items.xml and movement.xml

well in items make it something lik that
XML:
	<item id="2640" article="a" name="pair of soft boots">
		<attribute key="weight" value="800" /> <!-- well this is the item weight -->
		<attribute key="slotType" value="feet" />	<!-- the slot obviously leave it like that -->
		<attribute key="decayTo" value="10021" />	<!-- this is the itemid the boots will transfere to when the duration end -->
		<attribute key="transformDeEquipTo" value="6132" />	<!-- when you de-equip the boots it will turn to this itemid -->
		<attribute key="duration" value="14400" />	<!-- duration the boots will keep it effects on -->
		<attribute key="healthGain" value="1" />	<!-- value healed -->
		<attribute key="healthTicks" value="2000" />	<!-- amount of seconds in miliseconds i guess so for 5 sec will be 5 * 1000 = 5000 -->
		<attribute key="manaGain" value="2" />	<!-- value healed -->
		<attribute key="manaTicks" value="1000" />	<!-- amount of second for that heal to occur -->
		<attribute key="showduration" value="1" />	<!-- 0 to disable duration to be shown on the boots when u look at it -->
	</item>

for movement.xml
add those lines replacing "itemid" with the real itemid
XML:
<movevent type="Equip" itemid="2640" slot="feet" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2640" slot="feet" event="function" value="onDeEquipItem"/>


3) For account manager enable "newPlayerChooseVoc" make it true.
 
Last edited:
Back
Top