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

starting items help PLEASE! REP++

brank50

New Member
Joined
Dec 14, 2009
Messages
78
Reaction score
1
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 and its a war server so if yall have a spare firstitems.lua that works with war stuff in there PLEASE GIVE IT TO ME:):):):):)

[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

<event type="login" name="Firstitems" event="script" value="firstitems.lua"/>
please help!
 
Back
Top