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

CreatureEvent First item For RoXor Needed.

wlj

retierd
Joined
Jan 7, 2009
Messages
1,201
Reaction score
1
Well im lazy so i dont have time or wanna even look at a normal roxor map, Some abt how it sude be.

0.3.5pl1 (wanna u to test befor i add on serv!)
each voc has 4-9 lines

armor
legs
helm
weap
shield
boots
ring
5 cc


take some and i might modefie i will keep copy right to u, I will not take credit for youre script. I will rep u, And if other Players wanna rep i tell them to rep u not me.


Regards Wlj
 
I'm not sure what you're asking for so I'll just give you my old firstitems.xml xd

mods/firstitems.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
		config = {
			storage = 30001,
			items = {2463, 2647, 2457, 2525, 2643, 7618, 2160, 1988}
		}
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
		domodlib('firstitems_config')

		function onLogin(cid)
			if(getPlayerStorageValue(cid, config.storage) > 0) then
				return true
			end

			doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
			
			for _, id in ipairs(config.items) do
				doPlayerAddItem(cid, id, 1)
			end
			
			if (getPlayerVocation(cid) == 1) then
				doPlayerAddItem(cid, 2190, 1)
			elseif (getPlayerVocation(cid) == 2) then
				doPlayerAddItem(cid, 2182, 1)
			elseif (getPlayerVocation(cid) == 3) then
				doPlayerAddItem(cid, 2456, 1)
				doPlayerAddItem(cid, 2544, 1)
			elseif (getPlayerVocation(cid) == 4) then
				doPlayerAddItem(cid, 2383)
				doPlayerAddItem(cid, 2428)
				doPlayerAddItem(cid, 2417)
			end
			
			setPlayerStorageValue(cid, config.storage, 1)
		
			return true
		end
	]]></event>
</mod>
 
Lua:
-- Colandus @ 1337Rox0r
-- Slighty Modified by ArtofWork
-- How to think when adding items? Try fill the hands first, then the arrow slot. This because armor etc won't go to hand slot (Vocation items will be given before commonItems, as you usually use to have
-- the hand/arrow slot items there and not in common items. Take a look at how I did it:
 
local commonItems = {
    -- ITEMS ALL VOC RECEIVE
    {itemid=2457, count=1}, -- steel helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=7457, count=1}, -- fur boots
    {itemid=2160, count=1}, -- 1 gold coin
    {itemid=2120, count=1}, -- rope
    {itemid=5710, count=1}, -- shovel
    {itemid=2789, count=100}, -- food
}
 
local firstItems = {
    { -- SORC ITEMS
        {itemid=2190, count=1}, -- wand of vortex
        {itemid=2546, count=50}, -- burst
        {itemid=2173, count=1}, -- aol
      {itemid=7620, count=1}, -- mana pot
      {itemid=2268, count=1}, -- sudden death
        {itemid=2293, count=1}, -- magic wall
      {itemid=2305, count=1}, -- fire bomb
        {itemid=2261, count=1}, -- destroy field
      {itemid=2286, count=1}, -- poison bomb
      {itemid=2262, count=1}, -- energy bomb
      {itemid=2304, count=1}, -- fire ball rune
      {itemid=2273, count=1}, -- ultimate healing rune
    },
    { -- DRUID ITEMS
        {itemid=2182, count=1}, -- snakebite rod
        {itemid=2546, count=50}, -- burst
        {itemid=2173, count=1}, -- aol
      {itemid=7620, count=1}, -- mana pot
      {itemid=2268, count=1}, -- sudden death
        {itemid=2293, count=1}, -- magic wall
      {itemid=2305, count=1}, -- fire bomb
        {itemid=2261, count=1}, -- destroy field
      {itemid=2286, count=1}, -- poison bomb
      {itemid=2262, count=1}, -- energy bomb
      {itemid=2304, count=1}, -- fire ball rune
      {itemid=2273, count=1}, -- ultimate healing rune
    },
    { -- PALADIN ITEMS
        {itemid=2455, count=1}, -- crossbow
        {itemid=2543, count=100}, -- bolts
        {itemid=2173, count=1}, -- aol
      {itemid=2273, count=1}, -- ultimate healing rune
      {itemid=2268, count=1}, -- sudden death
        {itemid=2305, count=1}, -- fire bomb
        {itemid=2293, count=1}, -- magic wall
        {itemid=2286, count=1}, -- poison bomb
        {itemid=2261, count=1}, -- destroy field
        {itemid=7589, count=1}, -- strong potion

       
       

    },
    { -- KNIGHT ITEMS
        {itemid=2383, count=1}, -- spike sword
      {itemid=2521, count=1}, -- dark shield
        {itemid=2173, count=1}, -- aol
        {itemid=2286, count=1}, -- poison bomb
        {itemid=2261, count=1}, -- destroy field
        {itemid=7618, count=1}, -- weak hp pot
        {itemid=2313, count=1}, -- explosion
      {itemid=7620, count=1}, -- mana fluid
      {itemid=2305, count=1}, -- fire bomb
     
    }
}
 
for _, items in ipairs(firstItems) do
    for _, item in ipairs(commonItems) do
        table.insert(items, item)
    end
end
 
function onLogin(cid)
    if getPlayerGroupId(cid) < 2 then
 
        if getPlayerStorageValue(cid, 30002) ~= 1 then
            --[[local backpack = ]]doPlayerAddItem(cid, 1988, TRUE)
 
            local giveItems = firstItems[getPlayerVocation(cid)]
 
            if giveItems ~= nil then
                for _, v in ipairs(giveItems) do
                    --doAddContainerItem(backpack, v.itemid, v.count or 1)
                    doPlayerAddItem(cid, v.itemid, v.count or 1)
                end
 
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received your first items depending on your vocation.")
            end
            setPlayerStorageValue(cid, 30002, 1)
        end
    end
    return TRUE
end

just edit the items u want, it works perfectly :)
 
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 40045) == -1 then
	if getPlayerVocation(cid) == 1 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 2190, 1)--Wand Of Vortex--BackPack
		doAddContainerItem(container, 2175, 1)--Spell Book--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 2 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 2182, 1)--Snakekbite Rod--BackPack
		doAddContainerItem(container, 2175, 1)--Spell Book--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 3 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 8602, 1)--Jagged Sword--BackPack
		doAddContainerItem(container, 2389, 2)--Spear--BackPack
		doAddContainerItem(container, 2456, 1)--Bow--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 4 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 8602, 1)--Jagged Sword--BackPack
		doAddContainerItem(container, 2439, 1)--Daramanian mace--BackPack
		doAddContainerItem(container, 8601, 1)--Steel Axe--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
		setPlayerStorageValue(cid, 40045, 1)
	end
return true
end
 
Code:
function onLogin(cid)
if getPlayerStorageValue(cid, 40045) == -1 then
	if getPlayerVocation(cid) == 1 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 2190, 1)--Wand Of Vortex--BackPack
		doAddContainerItem(container, 2175, 1)--Spell Book--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 2 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 8820, 1)--Mage hat
		doPlayerAddItem(cid, 8819, 1)--Magician's robe
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 2182, 1)--Snakekbite Rod--BackPack
		doAddContainerItem(container, 2175, 1)--Spell Book--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 3 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 8602, 1)--Jagged Sword--BackPack
		doAddContainerItem(container, 2389, 2)--Spear--BackPack
		doAddContainerItem(container, 2456, 1)--Bow--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
	if getPlayerVocation(cid) == 4 then
		doPlayerAddItem(cid, 2518, 1)--Beholder Shield
		doPlayerAddItem(cid, 2457, 1)--Steel Helmet
		doPlayerAddItem(cid, 2465, 1)--Brass Armor
		doPlayerAddItem(cid, 2478, 1)--Brass Legs
		doPlayerAddItem(cid, 2643, 1)--Leather Boots
		local container = doPlayerAddItem(cid, 2000, 1)--BackPack
		doAddContainerItem(container, 8602, 1)--Jagged Sword--BackPack
		doAddContainerItem(container, 2439, 1)--Daramanian mace--BackPack
		doAddContainerItem(container, 8601, 1)--Steel Axe--BackPack
		doAddContainerItem(container, 2671, 3)--Ham--BackPack
		doAddContainerItem(container, 2120, 1)--Rope--BackPack
		doPlayerSendTextMessage(cid,22,""..getPlayerName(cid).." ahora tienes los primeros items de "..getPlayerVocationName(cid)..".")
	end
		setPlayerStorageValue(cid, 40045, 1)
	end
return true
end

Kinda messy dident get a shit of it ;S



Lua:
-- Colandus @ 1337Rox0r
-- Slighty Modified by ArtofWork
-- How to think when adding items? Try fill the hands first, then the arrow slot. This because armor etc won't go to hand slot (Vocation items will be given before commonItems, as you usually use to have
-- the hand/arrow slot items there and not in common items. Take a look at how I did it:
 
local commonItems = {
    -- ITEMS ALL VOC RECEIVE
    {itemid=2457, count=1}, -- steel helmet
    {itemid=2463, count=1}, -- plate armor
    {itemid=2647, count=1}, -- plate legs
    {itemid=7457, count=1}, -- fur boots
    {itemid=2160, count=1}, -- 1 gold coin
    {itemid=2120, count=1}, -- rope
    {itemid=5710, count=1}, -- shovel
    {itemid=2789, count=100}, -- food
}
 
local firstItems = {
    { -- SORC ITEMS
        {itemid=2190, count=1}, -- wand of vortex
        {itemid=2546, count=50}, -- burst
        {itemid=2173, count=1}, -- aol
      {itemid=7620, count=1}, -- mana pot
      {itemid=2268, count=1}, -- sudden death
        {itemid=2293, count=1}, -- magic wall
      {itemid=2305, count=1}, -- fire bomb
        {itemid=2261, count=1}, -- destroy field
      {itemid=2286, count=1}, -- poison bomb
      {itemid=2262, count=1}, -- energy bomb
      {itemid=2304, count=1}, -- fire ball rune
      {itemid=2273, count=1}, -- ultimate healing rune
    },
    { -- DRUID ITEMS
        {itemid=2182, count=1}, -- snakebite rod
        {itemid=2546, count=50}, -- burst
        {itemid=2173, count=1}, -- aol
      {itemid=7620, count=1}, -- mana pot
      {itemid=2268, count=1}, -- sudden death
        {itemid=2293, count=1}, -- magic wall
      {itemid=2305, count=1}, -- fire bomb
        {itemid=2261, count=1}, -- destroy field
      {itemid=2286, count=1}, -- poison bomb
      {itemid=2262, count=1}, -- energy bomb
      {itemid=2304, count=1}, -- fire ball rune
      {itemid=2273, count=1}, -- ultimate healing rune
    },
    { -- PALADIN ITEMS
        {itemid=2455, count=1}, -- crossbow
        {itemid=2543, count=100}, -- bolts
        {itemid=2173, count=1}, -- aol
      {itemid=2273, count=1}, -- ultimate healing rune
      {itemid=2268, count=1}, -- sudden death
        {itemid=2305, count=1}, -- fire bomb
        {itemid=2293, count=1}, -- magic wall
        {itemid=2286, count=1}, -- poison bomb
        {itemid=2261, count=1}, -- destroy field
        {itemid=7589, count=1}, -- strong potion

       
       

    },
    { -- KNIGHT ITEMS
        {itemid=2383, count=1}, -- spike sword
      {itemid=2521, count=1}, -- dark shield
        {itemid=2173, count=1}, -- aol
        {itemid=2286, count=1}, -- poison bomb
        {itemid=2261, count=1}, -- destroy field
        {itemid=7618, count=1}, -- weak hp pot
        {itemid=2313, count=1}, -- explosion
      {itemid=7620, count=1}, -- mana fluid
      {itemid=2305, count=1}, -- fire bomb
     
    }
}
 
for _, items in ipairs(firstItems) do
    for _, item in ipairs(commonItems) do
        table.insert(items, item)
    end
end
 
function onLogin(cid)
    if getPlayerGroupId(cid) < 2 then
 
        if getPlayerStorageValue(cid, 30002) ~= 1 then
            --[[local backpack = ]]doPlayerAddItem(cid, 1988, TRUE)
 
            local giveItems = firstItems[getPlayerVocation(cid)]
 
            if giveItems ~= nil then
                for _, v in ipairs(giveItems) do
                    --doAddContainerItem(backpack, v.itemid, v.count or 1)
                    doPlayerAddItem(cid, v.itemid, v.count or 1)
                end
 
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received your first items depending on your vocation.")
            end
            setPlayerStorageValue(cid, 30002, 1)
        end
    end
    return TRUE
end

just edit the items u want, it works perfectly :)

Thanxs rep++ :D worked 100% ty for help

I'm not sure what you're asking for so I'll just give you my old firstitems.xml xd

mods/firstitems.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
		config = {
			storage = 30001,
			items = {2463, 2647, 2457, 2525, 2643, 7618, 2160, 1988}
		}
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
		domodlib('firstitems_config')

		function onLogin(cid)
			if(getPlayerStorageValue(cid, config.storage) > 0) then
				return true
			end

			doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
			
			for _, id in ipairs(config.items) do
				doPlayerAddItem(cid, id, 1)
			end
			
			if (getPlayerVocation(cid) == 1) then
				doPlayerAddItem(cid, 2190, 1)
			elseif (getPlayerVocation(cid) == 2) then
				doPlayerAddItem(cid, 2182, 1)
			elseif (getPlayerVocation(cid) == 3) then
				doPlayerAddItem(cid, 2456, 1)
				doPlayerAddItem(cid, 2544, 1)
			elseif (getPlayerVocation(cid) == 4) then
				doPlayerAddItem(cid, 2383)
				doPlayerAddItem(cid, 2428)
				doPlayerAddItem(cid, 2417)
			end
			
			setPlayerStorageValue(cid, config.storage, 1)
		
			return true
		end
	]]></event>
</mod>

a mod? and also i asked for a creature script
 
Back
Top