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

Golden Boots Recharged

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
I'm looking for two things simple
I need a golden boots edited
2 Part :p


Items.XML
regenerates you 35 health in 1.5 seconds & 35 mana each 2 seconds. Duration 6 hours



reloads part:
Code:
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, 'soft') or msgcontains(msg, 'boots')) then
		selfSay('Do you want to repair your worn soft boots for 10000 gold coins?', cid)
		talkState[talkUser] = 1
	elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then
		if(getPlayerItemCount(cid, 10021) >= 1) then
			if(doPlayerRemoveMoney(cid, 10000) == TRUE) then
				doPlayerRemoveItem(cid, 10021, 1)
				doPlayerAddItem(cid, 2640)
				selfSay('Here you are.', cid)
			else
				selfSay('Sorry, you don\'t have enough gold.', cid)
			end
		else
			selfSay('Sorry, you don\'t have the item.', cid)
		end
		talkState[talkUser] = 0
	elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
		talkState[talkUser] = 0
		selfSay('Ok then.', cid)


	elseif(msgcontains(msg, 'firewalker') or msgcontains(msg, 'boots')) then
		selfSay('Do you want to repair your worn firewalker boots for 10000 gold coins?', cid)
		talkState[talkUser] = 2
	elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 2) then
		if(getPlayerItemCount(cid, 10022) >= 1) then
			if(doPlayerRemoveMoney(cid, 10000) == TRUE) then
				doPlayerRemoveItem(cid, 10022, 1)
				doPlayerAddItem(cid, 9933)
				selfSay('Here you are.', cid)
			else
				selfSay('Sorry, you don\'t have enough gold.', cid)
			end
		else
			selfSay('Sorry, you don\'t have the item.', cid)
		end
		talkState[talkUser] = 0
	elseif(msgcontains(msg, 'no') and isInArray({1}, talkState[talkUser]) == TRUE) then
		talkState[talkUser] = 0
		selfSay('Ok then.', cid)
	end

	return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
this script there is "soft boots", I want to have soft and golden boots
 
(you need to add
LUA:
<attribute key="transformEquipTo" value="2640" />
		<attribute key="stopduration" value="1" />
to stop and start the timer

items.xml override golden boots
LUA:
           </item>
	        <item id="2646" name="golden boots">
		<attribute key="weight" value="3200" />
		<attribute key="armor" value="4" /><attribute key="slotType" value="feet" />
		<attribute key="duration" value="14400" /> --check the time to fit your needs--
		<attribute key="healthGain" value="35" />
		<attribute key="healthTicks" value="1500" />
		<attribute key="manaGain" value="35" />
		<attribute key="manaTicks" value="2000" />
                <attribute key="showduration" value="1" />

with the npc you need your golden boots to change into something OnDeEquip so you can recharge them at the npc because the ones there are infinate,

also go into movements.xml and set this

LUA:
<movevent type="Equip" itemid="2646" slot="feet" event="function" value="onEquipItem"/>
	<movevent type="DeEquip" itemid="2646" slot="feet" event="function" value="onDeEquipItem"/>
 
Back
Top