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

Starterkit

I r New

New Member
Joined
Feb 1, 2008
Messages
137
Reaction score
1
Can someone make me a Talkactions script where u say "!starterkit" and u get the following items.
Code:
"Steel helmet (2457), Plate armor (2463), Plate Legs (2647), Leather boots (2643), Bright Sword (2407), Dwarven Shield (2525), Amulet of Loss (2173), Rope (2120),  Snakebite Rod (2182), Wand of Vortex (2190), Bow (2456), Arrow (2544), 2 Crystal Coins (2160)

And it all comes in a
Code:
Backpack (1998)
. AND You can only use the command ONCE.

If you cant make it give 2 crystal coins, please make it give 1.

or if u want to be really nice and helpful can you make 3 different scripts for Mages, Knights, Paladins
(Mages is sorcerer and Druid.)
it would be really nice if someone helped me with this.


Thankyou.
 
Here you go:
Tested in The Forgotten Server 0.3 beta 2

PHP:
local DruidItems =
{2457, 2463, 2647, 2643, 2525, 2173, 2120, 2160, 2182}

local SorcererItems =
{2457, 2463, 2647, 2643, 2525, 2173, 2120, 2160, 2190}

local PaladinItems =
{2457, 2463, 2647, 2643, 2525, 2173, 2120, 2456, 2160, 2544}

local KnightItems =
{2457, 2463, 2647, 2643, 2407, 2525, 2173, 2160, 2120}
local Stor = 10
local backpack = 1998
function onSay(cid, words, param)
	if getPlayerStorageValue(cid, Stor) == -1 then
	if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
	container = doPlayerAddItem(cid, backpack, 1)
		for i = 1, 9 do
			doAddContainerItem(container, SorcererItems[i], 1)
			setPlayerStorageValue(cid, Stor, 1)
		end
		
			elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
	container = doPlayerAddItem(cid, backpack, 1)
		for i = 1, 9 do
			doAddContainerItem(container, DruidItems[i], 1)
			setPlayerStorageValue(cid, Stor, 1)
		end
		
					elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
	container = doPlayerAddItem(cid, backpack, 1)
		for i = 1, 10 do
			doAddContainerItem(container, PaladinItems[i], 1)
			setPlayerStorageValue(cid, Stor, 1)
		end
		
					elseif getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
	container = doPlayerAddItem(cid, backpack, 1)
		for i = 1, 9 do
			doAddContainerItem(container, KnightItems[i], 1)
			setPlayerStorageValue(cid, Stor, 1)
		end
		else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have the required vocation!.")
	end
	else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You already recieved your items!.")
	end
	return TRUE
end

Edits:
local stor = 10 -- StorageValue
local backpack = 1998 -- ID of backpack

Rep++++++++++++
 
Last edited:
Code:
local items = { 
	[1] = { 8819, 8820, 2468, 2509, 2643, 2190 },
	[2] = { 8819, 8820, 2468, 2509, 2643, 2182 },
	[3] = { 2509, 2643, 8923, 8892, 2481, 2389 },
	[4] = { 2643, 2478, 2465, 2481, 2509 }
}
function onSay(cid, words, param)
	if getPlayerStorageValue(cid, 30001) == -1 then
		for voc, item in pairs(items) do
			if getPlayerVocation(cid) == voc then
				local container = doPlayerAddItem(cid, 1988, 1)
				for i = 1, table.maxn(item) do
					doAddContainerItem(container, item[i], 1)
				end
				setPlayerStorageValue(cid, 30001, 1)
			end
		end
	end
	return TRUE
end
Shorted :D (Based on Rudolf Script)
Change the Equip [IDS] :)
 
Nice one Streamside, and thanks now i understoord
for voc, item in pairs(items)

Edit:

Does this work:

local items = {
[1,5] = { 8819, 8820, 2468, 2509, 2643, 2190 },
[2,6] = { 8819, 8820, 2468, 2509, 2643, 2182 },
[3,7] = { 2509, 2643, 8923, 8892, 2481, 2389 },
[4,8] = { 2643, 2478, 2465, 2481, 2509 }
}

Because if you are promoted then script wont work, just whant to know if that is possible...
 
@up

It should :O?

or make like this.

PHP:
	[1] = { 8819, 8820, 2468, 2509, 2643, 2190 },
	[2] = { 8819, 8820, 2468, 2509, 2643, 2182 },
	[3] = { 2509, 2643, 8923, 8892, 2481, 2389 },
	[4] = { 2643, 2478, 2465, 2481, 2509 }
	[5] = { 8819, 8820, 2468, 2509, 2643, 2190 },
	[6] = { 8819, 8820, 2468, 2509, 2643, 2182 },
	[7] = { 2509, 2643, 8923, 8892, 2481, 2389 },
	[8] = { 2643, 2478, 2465, 2481, 2509 }

:)
 
Nice one Streamside, and thanks now i understoord


Edit:

Does this work:



Because if you are promoted then script wont work, just whant to know if that is possible...

Code:
local items = {
[1] = { 8819, 8820, 2468, 2509, 2643, 2190 },
[2] = { 8819, 8820, 2468, 2509, 2643, 2182 },
[3] = { 2509, 2643, 8923, 8892, 2481, 2389 },
[4] = { 2643, 2478, 2465, 2481, 2509 }
[5] = self[1],
[6] = self[2],
[7] = self[3],
[8] = self[4]
}

@up

It should :O?

or make like this.

PHP:
	[1] = { 8819, 8820, 2468, 2509, 2643, 2190 },
	[2] = { 8819, 8820, 2468, 2509, 2643, 2182 },
	[3] = { 2509, 2643, 8923, 8892, 2481, 2389 },
	[4] = { 2643, 2478, 2465, 2481, 2509 }
	[5] = { 8819, 8820, 2468, 2509, 2643, 2190 },
	[6] = { 8819, 8820, 2468, 2509, 2643, 2182 },
	[7] = { 2509, 2643, 8923, 8892, 2481, 2389 },
	[8] = { 2643, 2478, 2465, 2481, 2509 }

:)

not
 
Code:
local items = {
[1] = { 8819, 8820, 2468, 2509, 2643, 2190 },
[2] = { 8819, 8820, 2468, 2509, 2643, 2182 },
[3] = { 2509, 2643, 8923, 8892, 2481, 2389 },
[4] = { 2643, 2478, 2465, 2481, 2509 }
[5] = self[1],
[6] = self[2],
[7] = self[3],
[8] = self[4]
}

self[1] :O GOOOOOOOOD :D Thanks Colandus
 
local DruidItems =
{
2457, 2463, 2647, 2643, 2525, 2173, 2120, 2160, 2182}

local SorcererItems =
{
2457, 2463, 2647, 2643, 2525, 2173, 2120, 2160, 2190}

local PaladinItems =
{
2457, 2463, 2647, 2643, 2525, 2173, 2120, 2456, 2160, 2544}

local KnightItems =
{
2457, 2463, 2647, 2643, 2407, 2525, 2173, 2160, 2120}
local Stor = 10
local backpack
= 1998
function onSay(cid, words, param)
if
getPlayerStorageValue(cid, Stor) == -1 then
if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 5 then
container
= doPlayerAddItem(cid, backpack, 1)
for
i = 1, 9 do
doAddContainerItem(container, SorcererItems[i], 1)
setPlayerStorageValue(cid, Stor, 1)
end

elseif getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 6 then
container
= doPlayerAddItem(cid, backpack, 1)
for
i = 1, 9 do
doAddContainerItem(container, DruidItems[i], 1)
setPlayerStorageValue(cid, Stor, 1)
end

elseif getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 7 then
container
= doPlayerAddItem(cid, backpack, 1)
for
i = 1, 10 do
doAddContainerItem(container, PaladinItems[i], 1)
setPlayerStorageValue(cid, Stor, 1)
end

elseif getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 8 then
container
= doPlayerAddItem(cid, backpack, 1)
for
i = 1, 9 do
doAddContainerItem(container, KnightItems[i], 1)
setPlayerStorageValue(cid, Stor, 1)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have the required vocation!.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You already recieved your items!.")
end
return TRUE
end

This work in TFS 02?
 
Nice script, but i modified to loginitems for new player
Don't have a way to ekips start in players's body instead of inside de bp???
 
Back
Top