Jake Damico
New Member
- Joined
- Aug 31, 2014
- Messages
- 101
- Reaction score
- 1
Trying to find the file to change starter equipment with account manager
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Luan" contact="[email protected]" enabled="yes">
<description><![CDATA[
Custom First Items
]]></description>
<config name="firstitems_config"><![CDATA[
config = {
storage = 40046,
items = {}
}
]]></config>
<event type="login" name="FirstItems" event="buffer"><![CDATA[
domodlib('firstitems_config')
if(getPlayerStorageValue(cid, config.storage) > 0) then
return
end
for _, id in ipairs(config.items) do
doPlayerAddItem(cid, id, 1)
end
-- All Vocation
-- BackPack -- Rope -- in Backpack
doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1)
-- Brass Armor -- Body
doPlayerAddItem(cid, 2465, 1)
-- Steel Helmet -- Head
doPlayerAddItem(cid, 2457, 1)
-- Sorcerer - Druid (shield) -- Hand
if isSorcerer(cid) or isDruid(cid) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..". Now require to get a wand or rod, request Dark Rodo NPC.")
-- Dwarven Shield -- Right Hand
doPlayerAddItem(cid, 2525, 1)
end
-- Paladin - Knight (Shield) -- Hand
if isKnight(cid) or isPaladin(cid) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".")
-- Dwarven Shield -- Right Hand
doPlayerAddItem(cid, 2525, 1)
end
-- Paladin - Knight (Weapon) -- Hand
if isPaladin(cid) then
doPlayerAddItem(cid, 2389, 1) -- Spear -- Left Hand
end
-- DRUID (Weapon) -- Hand
if isDruid(cid) then
doPlayerAddItem(cid, 2182, 1) -- snakebitrod -- Left Hand
end
-- Sorcerer (Weapon) -- Hand
if isSorcerer(cid) then
doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand
end
-- All Vocation
-- Brass Legs -- in Feet
doPlayerAddItem(cid, 2478, 1)
-- Leather Boots -- in Boots
doPlayerAddItem(cid, 2643, 1)
-- Scarf -- in Necklacke
doPlayerAddItem(cid, 2661, 1)
-- Platinum Coin -- in Arrows
doPlayerAddItem(cid, 2152, 100)
-- Shovel -- in Backpack
doPlayerAddItem(cid, 2554, 1)
-- Crystal Ring -- in Ring
doPlayerAddItem(cid, 2124, 1)
-- Knight (Weapon) -- in Backpack
if isKnight(cid) then
doPlayerAddItem(cid, 2383, 1) -- Sword
doPlayerAddItem(cid, 2428, 1) -- Axe
doPlayerAddItem(cid, 2394, 1) -- Club
end
setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
Check if you have in your distro following path: %ots_folder%/mods/firstitems.xml. Something like this:
XML:<?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="Luan" contact="[email protected]" enabled="yes"> <description><![CDATA[ Custom First Items ]]></description> <config name="firstitems_config"><![CDATA[ config = { storage = 40046, items = {} } ]]></config> <event type="login" name="FirstItems" event="buffer"><![CDATA[ domodlib('firstitems_config') if(getPlayerStorageValue(cid, config.storage) > 0) then return end for _, id in ipairs(config.items) do doPlayerAddItem(cid, id, 1) end -- All Vocation -- BackPack -- Rope -- in Backpack doAddContainerItem(doPlayerAddItem(cid, 1988, 1), 2120, 1) -- Brass Armor -- Body doPlayerAddItem(cid, 2465, 1) -- Steel Helmet -- Head doPlayerAddItem(cid, 2457, 1) -- Sorcerer - Druid (shield) -- Hand if isSorcerer(cid) or isDruid(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..". Now require to get a wand or rod, request Dark Rodo NPC.") -- Dwarven Shield -- Right Hand doPlayerAddItem(cid, 2525, 1) end -- Paladin - Knight (Shield) -- Hand if isKnight(cid) or isPaladin(cid) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT," "..getPlayerName(cid).." now have the first items of "..getPlayerVocationName(cid)..".") -- Dwarven Shield -- Right Hand doPlayerAddItem(cid, 2525, 1) end -- Paladin - Knight (Weapon) -- Hand if isPaladin(cid) then doPlayerAddItem(cid, 2389, 1) -- Spear -- Left Hand end -- DRUID (Weapon) -- Hand if isDruid(cid) then doPlayerAddItem(cid, 2182, 1) -- snakebitrod -- Left Hand end -- Sorcerer (Weapon) -- Hand if isSorcerer(cid) then doPlayerAddItem(cid, 2190, 1) -- Wand of Vortex -- Left Hand end -- All Vocation -- Brass Legs -- in Feet doPlayerAddItem(cid, 2478, 1) -- Leather Boots -- in Boots doPlayerAddItem(cid, 2643, 1) -- Scarf -- in Necklacke doPlayerAddItem(cid, 2661, 1) -- Platinum Coin -- in Arrows doPlayerAddItem(cid, 2152, 100) -- Shovel -- in Backpack doPlayerAddItem(cid, 2554, 1) -- Crystal Ring -- in Ring doPlayerAddItem(cid, 2124, 1) -- Knight (Weapon) -- in Backpack if isKnight(cid) then doPlayerAddItem(cid, 2383, 1) -- Sword doPlayerAddItem(cid, 2428, 1) -- Axe doPlayerAddItem(cid, 2394, 1) -- Club end setPlayerStorageValue(cid, config.storage, 1) ]]></event> </mod>
<inventory>
<slot slotid="1">
<item id="2496"/>
</slot>
<slot slotid="2">
<item id="2130"/>
</slot>
<slot slotid="3">
<item id="1988">
<inside>
<item id="1988">
<inside>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
<item id="2268" count="99" charge="99"/>
</inside>
</item>
<item id="1988">
<inside>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
<item id="2304" count="99" charge="99"/>
</inside>
</item>
<item id="1988">
<inside>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
<item id="2273" count="99" charge="99"/>
</inside>
</item>
<item id="2671" count="1"/>
<item id="2696"/>
<item id="2666" count="1"/>
<item id="2696"/>
<item id="2671" count="1"/>
<item id="2690" count="1"/>
<item id="2681"/>
<item id="2690" count="1"/>
<item id="2690" count="1"/>
<item id="2671" count="1"/>
<item id="2689" count="1"/>
<item id="2689" count="1"/>
<item id="2689" count="1"/>
<item id="2681"/>
<item id="2681"/>
</inside>
</item>
</slot>
<slot slotid="4">
<item id="2472"/>
</slot>
<slot slotid="7">
<item id="2507"/>
</slot>
<slot slotid="8">
<item id="2641"/>
</slot>
<slot slotid="9">
<item id="2123"/>
</slot>
<slot slotid="10">
<item id="2522"/>
</slot>
</inventory>