when someone logs in they dont get anything i have the firstitems.lua and its added in on my creatureevents.xml and still dont work so maybe one of yall can fix it???????? im also using a website not a account manager read the post above this one!
[function onDeath(cid, corpse, deathList)
if getCreatureSkullType(cid) >= SKULL_RED then
doCreatureSetStorage(cid, 99, 1)
end
return true
end
local t = {
{2000}, -- red bp
{7591}, -- great health potion
{7589}, -- strong mana potion
{8472}, -- great spirit potion
{2268}, -- sudden death rune
{2120}, -- rope
{2420}, -- machete
{2789, 50}, -- brown mushrooms
{2195}, -- boots of haste
{8922}, -- wand of voodoo
{8910}, -- underworld rod
{7368, 100}, -- assassin stars
{2400}, -- magic sword
{2421}, -- thunder hammer
{2431}, -- Stonecutter Axe
{2522}, -- great shield
}
function onLogin(cid)
if getCreatureStorage(cid, 99) == 1 then
doCreatureSetStorage(cid, 99)
for _, f in ipairs(t) do
doPlayerAddItem(cid, f[1], f[2] or 1)
end
end
return true
end
please help!<event type="login" name="Firstitems" event="script" value="firstitems.lua"/>