hiya,i use a SQL server,and when i try to change the starting eq in firstitem.lua i always mess it up,can someone do it for me?
Thats the lua script,
can someone change it so the player begins with plate set,spike sword,dwarven shield,a backpack with a shovel,rope,bow,wand of vortex and snakebite rod .. Please,if you help me you're a god -.-'
Code:
local firstItems =
{
2050,
2382
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddItem(cid, 2651, 1)
else
doPlayerAddItem(cid, 2650, 1)
end
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
can someone change it so the player begins with plate set,spike sword,dwarven shield,a backpack with a shovel,rope,bow,wand of vortex and snakebite rod .. Please,if you help me you're a god -.-'
Last edited by a moderator: