• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[MOD] Best First items !

Erikas Kontenis

Board Moderator
Staff member
Board Moderator
Joined
Jul 3, 2009
Messages
1,866
Reaction score
570
Location
Lithuania
Hello i will gift for us i think the best first items mod for Example: real map without webPage or any low rate's server who dont got a sample character :D with thoose items your character will start very good...

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="Apsivaflines" contact="antica.sytes.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
		domodlib('firstitems_config')

		function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
	
			doAddContainerItem(bag, 2120, 1) -- Rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coints
		
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2190, 1) -- wand of wortex
			doPlayerAddItem(cid, 8819, 1) -- magician's robe
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2468, 1) -- studded legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
		
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2182, 1) -- snakebite rod
			doPlayerAddItem(cid, 8819, 1) -- magican's robe
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2468, 1) -- studded legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
		
			doPlayerAddItem(cid, 2389, 1) -- spear
                        doPlayerAddItem(cid, 2456, 1) -- bow
			doPlayerAddItem(cid, 2544, 100) -- 100 arrows
			doPlayerAddItem(cid, 2660, 1) -- hidden turban
			doPlayerAddItem(cid, 2480, 1) -- legion helmet
			doPlayerAddItem(cid, 8923, 1) -- ranger legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
			doAddContainerItem(bag, 2439, 1) -- daramanian mace
			doAddContainerItem(bag, 8601, 1) -- steel axe
		
			doPlayerAddItem(cid, 2509, 1) -- steel shield
			doPlayerAddItem(cid, 8602, 1) -- jagged sword
			doPlayerAddItem(cid, 2465, 1) -- brass armor
			doPlayerAddItem(cid, 2481, 1) -- soldier helmet
			doPlayerAddItem(cid, 2478, 1) -- brass legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)
		end
	end
 	return TRUE
end
	]]></event>
</mod>

if script not working then are only one problem with your playerStorage By sure you not using 50000 storage.

if you using 0.2.~ and feel free to use it as creatureScripts

firstitems.lua

Code:
function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
	
			doAddContainerItem(bag, 2120, 1) -- Rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coints
		
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2190, 1) -- wand of wortex
			doPlayerAddItem(cid, 8819, 1) -- magician's robe
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2468, 1) -- studded legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
		
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2182, 1) -- snakebite rod
			doPlayerAddItem(cid, 8819, 1) -- magican's robe
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2468, 1) -- studded legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
		
			doPlayerAddItem(cid, 2389, 1) -- spear
                        doPlayerAddItem(cid, 2456, 1) -- bow
			doPlayerAddItem(cid, 2544, 100) -- 100 arrows
			doPlayerAddItem(cid, 2660, 1) -- hidden turban
			doPlayerAddItem(cid, 2480, 1) -- legion helmet
			doPlayerAddItem(cid, 8923, 1) -- ranger legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2152, 50) -- 50 platinum coins
			doAddContainerItem(bag, 2439, 1) -- daramanian mace
			doAddContainerItem(bag, 8601, 1) -- steel axe
		
			doPlayerAddItem(cid, 2509, 1) -- steel shield
			doPlayerAddItem(cid, 8602, 1) -- jagged sword
			doPlayerAddItem(cid, 2465, 1) -- brass armor
			doPlayerAddItem(cid, 2481, 1) -- soldier helmet
			doPlayerAddItem(cid, 2478, 1) -- brass legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddItem(cid, 2173, 1) -- amulet of loss
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: [B]Chronic Elements[/B]

			setPlayerStorageValue(cid, 50000, 1)
		end
	end
 	return TRUE
end

And creatureScripts.xml

Code:
<event type="login" name="FirstItems" script="firstitems.lua"/>


Feel Free to rep me
:p
 
Last edited:
Not really the best, you could also shorten them using arrays and loops.
But decent anyway.
 
yeah, I would use "for i, #...etc"
and the best first items is posted @ web app section, really the best
 
It's not kinda bad but not the best aswell. I would just say an average script. I totaly agree with cycokitan about the loops.
 
@up its pretty hard i wasted about 30 mins to check all the ids... with map editor... its much... and the items aint the plate set for all voc its unique...
 
Whats wrong with the samples?:d

example: War ots dont need website... all characters can by opened by 1/1 but they should use other items ;P and mayby are noobs who dont know how to make website... so for theys usefull to...
 
example: War ots dont need website... all characters can by opened by 1/1 but they should use other items ;P and mayby are noobs who dont know how to make website... so for theys usefull to...

OHHH!! Right :D


Good job with mod :)
 
@up its pretty hard i wasted about 30 mins to check all the ids... with map editor... its much... and the items aint the plate set for all voc its unique...

You should specify for "what" type of server it is unique for. Like RL map servers or Roxor or whatever else.

Because "unique" is too dependant on the server, so you cant say this is the "best first items" because there are custom servers out there where those items you chose are nothing unique or have nothing to do with the storyline.

Also, the script is just an "items" modification of the MOD that already comes with the distro, you didnt really modify anything else on the script, so you shouldnt've changed the "author" part.

Id say if you want more credits and more rep for this:

1) Make the script more organized and configurable for newbies;
2) Name the items you chose on a separate list on your post;
3) Specify for which type of server these items might be the "best" in your opinion.

Good luck.
 
Back
Top Bottom