Nikkster
Programmer
Hello, ofcourse I will give you reputation if you help me with this, 14 points.
However, can someone change this firstitems.lua so when someone make a character and decides to be a sorcerer and logins to the game, they will get: Leather Boots, Plate Legs, Plate Armor, Dark Helmet, Dwarven shield & a wand of vortex.
Same with druid's but just a snakebite rod instead of a wand of vortex.
Same with Paladin's and Knight's, but for paladins, a spear and for knights, a katana.
Here are the item id's:
2238 - Leatehr Boots
2647 - Plate Legs
2463 - Plate Armor
2490 - Dark Helmet
2525 - Dwarven Shield
2190 - Wand of Vortex
2182 - Snaktebite Rod
2389 - Spear
2412 - Katana
firstitems.lua
Thanks!
However, can someone change this firstitems.lua so when someone make a character and decides to be a sorcerer and logins to the game, they will get: Leather Boots, Plate Legs, Plate Armor, Dark Helmet, Dwarven shield & a wand of vortex.
Same with druid's but just a snakebite rod instead of a wand of vortex.
Same with Paladin's and Knight's, but for paladins, a spear and for knights, a katana.
Here are the item id's:
2238 - Leatehr Boots
2647 - Plate Legs
2463 - Plate Armor
2490 - Dark Helmet
2525 - Dwarven Shield
2190 - Wand of Vortex
2182 - Snaktebite Rod
2389 - Spear
2412 - Katana
firstitems.lua
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, 2389, 1)
else
doPlayerAddItem(cid, 2389, 1)
end
local bag = doPlayerAddItem(cid, 1987, 1)
doAddContainerItem(bag, 2674, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
Thanks!