Awesome Slayer
New Member
- Joined
- Jul 16, 2008
- Messages
- 58
- Reaction score
- 0
Hi this is my very first solo script i know for the experienced scripters this is a piece of cake but for me not so easy.... anyway here it is...
this goes in data\creaturescripts\scripts\firstitems.lua just open the file and paste this over whats in there![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Whats it does:-
when you log in for the first time (after making your character) it will give you a mammoth fur cape, plate legs, aol, dwarven shield, 1 cc, leather boots, steel helmet, arrow and a bp with elvenhair rope, light shovel, blue tome(is spellbook in my server), serpent sword, snakebite rod, wand of vortex and a bow![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Code:
local firstItems =
{
2173,
2457,
7463,
2160,
2525,
2647,
2544,
2643
}
function onLogin(cid)
if getPlayerStorageValue(cid, 30001) == -1 then
for i = 1, table.maxn(firstItems) do
doPlayerAddItem(cid, firstItems[i], 1)
end
local bag = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bag, 5710, 1)
doAddContainerItem(bag, 7731, 1)
doAddContainerItem(bag, 1984, 1)
doAddContainerItem(bag, 2456, 1)
doAddContainerItem(bag, 2190, 1)
doAddContainerItem(bag, 2182, 1)
doAddContainerItem(bag, 2409, 1)
setPlayerStorageValue(cid, 30001, 1)
end
return TRUE
end
this goes in data\creaturescripts\scripts\firstitems.lua just open the file and paste this over whats in there
Whats it does:-
when you log in for the first time (after making your character) it will give you a mammoth fur cape, plate legs, aol, dwarven shield, 1 cc, leather boots, steel helmet, arrow and a bp with elvenhair rope, light shovel, blue tome(is spellbook in my server), serpent sword, snakebite rod, wand of vortex and a bow
Last edited: