• 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 PLease can anyone modify this first_items voc for war server pls

Felipe93

Ghost Member
Joined
Mar 21, 2015
Messages
2,035
Solutions
9
Reaction score
361
Location
Chile
Hello i got this script is like rpg y need one for war server for players like level 50-60+

pls
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Kaiser" 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), 2270, 1), 2261, 1), 2268, 1), 2293, 1), 2305, 1), 2310, 1), 2204, 1), 2167, 1), 2169, 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 Josue NPC.")
-- SpellBook Shield -- Right Hand
doPlayerAddItem(cid, 2175, 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)..".")
-- Bonelord Shield -- Right Hand
doPlayerAddItem(cid, 2518, 1)
end

-- Paladin - Knight (Weapon) -- Hand
if isPaladin(cid) then
doPlayerAddItem(cid, 2455, 20) -- Crossbow| -- Left Hand
-- Platinum Coin -- in Arrows
doPlayerAddItem(cid, 2543, 100)
end

-- Knight (Weapon) -- Hand
if isKnight(cid) then
doPlayerAddItem(cid, 2398, 1)
doPlayerAddItem(cid, 2519, 1) -- Shield
doPlayerAddItem(cid, 2404, 1) -- sword
doPlayerAddItem(cid, 2393, 1) -- Daramanian mace
end

-- All Vocation
-- Crown Legs -- in Feet
doPlayerAddItem(cid, 2488, 1)
-- Leather Boots -- in Boots
doPlayerAddItem(cid, 2195, 1)
-- Scarf -- in Necklacke
doPlayerAddItem(cid, 2661, 1)
-- Platinum Coin -- in Backpack
doPlayerAddItem(cid, 2152, 100)
-- Shovel -- in Backpack
doPlayerAddItem(cid, 2554, 1)
-- Mace -- in Backpack
doPlayerAddItem(cid, 2398, 1)
-- Brass shield -- in Backpack
doPlayerAddItem(cid, 2511, 1)
-- Crystal Ring -- in Ring
doPlayerAddItem(cid, 2124, 1)

-- Knight (Weapon) -- in Backpack
if isKnight(cid) then
doPlayerAddItem(cid, 2519, 1) -- Shield
doPlayerAddItem(cid, 2404, 1) -- sword
doPlayerAddItem(cid, 2393, 1) -- Axe
end

setPlayerStorageValue(cid, config.storage, 1)
]]></event>
</mod>
 
Back
Top