Jokersman213
New Member
- Joined
- Dec 15, 2008
- Messages
- 8
- Reaction score
- 0
Hey.. I found that on my creature scripts im using TFS, I would like you to script something for me, Il really give a rep for it! Because its kinda hard I think? Hehe im just new in OTS.. well Its the starting scripts! As you can see if a player is a male he gets leather armor, torch and a club!, well if female he gets a coat neither the leather armor so Il need you guys to script something for me here is the script first :-
Il need you to do :-
Local items that every player should normally get :-
Plate armor , Plate legs , Steel Helmet , Leather Boots , Backpack , Scarf , In the backpack :- rope,shovel,5 hams
If a player create sorcerer we will add to the local items :-
Wand of Vortex
Dwarven Shield
If a player create druid we will add to the local items :-
SnakeBite Rod
Dwarven Shield
If a player creature Knight we will add to the local items :-
Bright sword , Fire Axe , Skull Staff , Dwarven Shield
If a player creature a paladin we will add to the local items :-
Crossbow , 1 Bolt .
Thats for all ------------ Note :- Ammunications are infinite, Cap system OFF!
Please help me in this, really need help!! Il be so happy if someone help me in this Il never do it alone
Il give rep++!
Thanks!
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
Il need you to do :-
Local items that every player should normally get :-
Plate armor , Plate legs , Steel Helmet , Leather Boots , Backpack , Scarf , In the backpack :- rope,shovel,5 hams
If a player create sorcerer we will add to the local items :-
Wand of Vortex
Dwarven Shield
If a player create druid we will add to the local items :-
SnakeBite Rod
Dwarven Shield
If a player creature Knight we will add to the local items :-
Bright sword , Fire Axe , Skull Staff , Dwarven Shield
If a player creature a paladin we will add to the local items :-
Crossbow , 1 Bolt .
Thats for all ------------ Note :- Ammunications are infinite, Cap system OFF!
Please help me in this, really need help!! Il be so happy if someone help me in this Il never do it alone
Il give rep++!
Thanks!