hahawithout
Spanisher
- Joined
- Apr 21, 2014
- Messages
- 16
- Reaction score
- 1
Hello i have this at firstitems.lua
function onLogin(cid)
local storage = 30055 -- storage value
local sorcItems = {
2457, -- Steel helmet
2463, -- Plate armor
2190, -- Wand of vortex
2525, -- Dwarven shield
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
local druidItems = {
2457, -- Steel helmet
2463, -- Plate armor
2525, -- Dwarven shield
2182, -- Snakebite rod
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
local pallyItems = {
2457, -- Steel helmet
2463, -- Plate armor
2456, -- Bow
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
}
local kinaItems = {
2457, -- Steel helmet
2463, -- Plate armor
2525, -- Dwarven shield
8602, -- Jagged sword
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
if getPlayerStorageValue(cid, storage) == -1 then
setPlayerStorageValue(cid, storage, 1)
if getPlayerVocation(cid) == 1 then
-- Sorcerer
for i = 1, table.getn(sorcItems), 1 do
doPlayerAddItem(cid, sorcItems, 1, FALSE)
end
elseif getPlayerVocation(cid) == 2 then
-- Druid
for i = 1, table.getn(druidItems), 1 do
doPlayerAddItem(cid, druidItems, 1, FALSE)
end
elseif getPlayerVocation(cid) == 3 then
-- Paladin
for i = 1, table.getn(pallyItems), 1 do
doPlayerAddItem(cid, pallyItems, 1, FALSE)
end
-- 8 arrows
doPlayerAddItem(cid, 2544, 8, FALSE)
elseif getPlayerVocation(cid) == 4 then
-- Knight
for i = 1, table.getn(kinaItems), 1 do
doPlayerAddItem(cid, kinaItems, 1, FALSE)
end
end
-- Common for all
doPlayerAddItem(cid, 2789, 100, FALSE) -- 100 brown mushroom
doPlayerAddItem(cid, 2120, 1, FALSE) -- 1 rope
doPlayerAddItem(cid, 5710, 1, FALSE) -- 1 light shovel
doPlayerAddItem(cid, 2160, 2, FALSE) -- 2 crystal coins
end
return true
end
could you check if there is something wrong ? when i run my ot... player has NO EQ all vocations appear empty.
function onLogin(cid)
local storage = 30055 -- storage value
local sorcItems = {
2457, -- Steel helmet
2463, -- Plate armor
2190, -- Wand of vortex
2525, -- Dwarven shield
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
local druidItems = {
2457, -- Steel helmet
2463, -- Plate armor
2525, -- Dwarven shield
2182, -- Snakebite rod
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
local pallyItems = {
2457, -- Steel helmet
2463, -- Plate armor
2456, -- Bow
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
}
local kinaItems = {
2457, -- Steel helmet
2463, -- Plate armor
2525, -- Dwarven shield
8602, -- Jagged sword
2647, -- Plate legs
2643, -- Leather boots
1988, -- Brown backpack
2050 -- torch
}
if getPlayerStorageValue(cid, storage) == -1 then
setPlayerStorageValue(cid, storage, 1)
if getPlayerVocation(cid) == 1 then
-- Sorcerer
for i = 1, table.getn(sorcItems), 1 do
doPlayerAddItem(cid, sorcItems, 1, FALSE)
end
elseif getPlayerVocation(cid) == 2 then
-- Druid
for i = 1, table.getn(druidItems), 1 do
doPlayerAddItem(cid, druidItems, 1, FALSE)
end
elseif getPlayerVocation(cid) == 3 then
-- Paladin
for i = 1, table.getn(pallyItems), 1 do
doPlayerAddItem(cid, pallyItems, 1, FALSE)
end
-- 8 arrows
doPlayerAddItem(cid, 2544, 8, FALSE)
elseif getPlayerVocation(cid) == 4 then
-- Knight
for i = 1, table.getn(kinaItems), 1 do
doPlayerAddItem(cid, kinaItems, 1, FALSE)
end
end
-- Common for all
doPlayerAddItem(cid, 2789, 100, FALSE) -- 100 brown mushroom
doPlayerAddItem(cid, 2120, 1, FALSE) -- 1 rope
doPlayerAddItem(cid, 5710, 1, FALSE) -- 1 light shovel
doPlayerAddItem(cid, 2160, 2, FALSE) -- 2 crystal coins
end
return true
end
could you check if there is something wrong ? when i run my ot... player has NO EQ all vocations appear empty.