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

Create Character And Appear with no SET!

Fyruz

★★★★★
Joined
Feb 7, 2009
Messages
556
Reaction score
19
Location
127.0.0.1
Well i have an issue with my server, i recently change to modern account, and when the people create her character and login, he appear with no set, i already check the samples and when i login to samples the samples are fine, with set etc.. i dont know if is an error on config.php or idk but please someone can help me?
 
In your mods folder, name it firstitems.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="" contact="" 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
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
	
			doAddContainerItem(bag, 2120, 1) -- Rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coints
		    doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
			
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2190, 1) -- wand of wortex
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
		    doAddContainerItem(bag, 2160, 5) -- 50 platinum coints
		    doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
			
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2182, 1) -- snakebite rod
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coins
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
		
			doPlayerAddItem(cid, 2389, 1) -- spear
                        doPlayerAddItem(cid, 2456, 1) -- bow
			doPlayerAddItem(cid, 2544, 100) -- 100 arrows
			doPlayerAddItem(cid, 2660, 1) -- hidden turban
			doPlayerAddItem(cid, 2457, 1) -- steel helmet
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coins
			doAddContainerItem(bag, 2439, 1) -- daramanian mace
			doAddContainerItem(bag, 8601, 1) -- steel axe
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
		
			doPlayerAddItem(cid, 2525, 1) -- dwarven shield
			doPlayerAddItem(cid, 8602, 1) -- jagged sword
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 2457, 1) -- steel helmet
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

			setPlayerStorageValue(cid, 50000, 1)
		end
	end
 	return TRUE
end
	]]></event>
</mod>
 
In your mods folder, name it firstitems.xml

Code:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="" contact="" enabled="yes">
	<config name="firstitems_config"><=!=[=C=D=A=T=A=[
	]=]=></config>
	<event type="login" name="FirstItems" event="script"><=!=[=C=D=A=T=A=[
		domodlib('firstitems_config')

		function onLogin(cid)
	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then
		if isSorcerer(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
	
			doAddContainerItem(bag, 2120, 1) -- Rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coints
		    doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
			
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2190, 1) -- wand of wortex
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

		setPlayerStorageValue(cid, 50000, 1)

		elseif isDruid(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
		    doAddContainerItem(bag, 2160, 5) -- 50 platinum coints
		    doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
			
			doPlayerAddItem(cid, 2175, 1) -- spellbook
			doPlayerAddItem(cid, 2182, 1) -- snakebite rod
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 8820, 1) -- mage hat
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

			setPlayerStorageValue(cid, 50000, 1)

		elseif isPaladin(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coins
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
		
			doPlayerAddItem(cid, 2389, 1) -- spear
                        doPlayerAddItem(cid, 2456, 1) -- bow
			doPlayerAddItem(cid, 2544, 100) -- 100 arrows
			doPlayerAddItem(cid, 2660, 1) -- hidden turban
			doPlayerAddItem(cid, 2457, 1) -- steel helmet
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

			setPlayerStorageValue(cid, 50000, 1)

		elseif isKnight(cid) then
			doPlayerAddLevel(cid, 7) -- Level 8
			local bag = doPlayerAddItem(cid, 1988, 1)
			doAddContainerItem(bag, 2120, 1) -- rope
			doAddContainerItem(bag, 2554, 1) -- shovel
			doAddContainerItem(bag, 2160, 5) -- 50 platinum coins
			doAddContainerItem(bag, 2439, 1) -- daramanian mace
			doAddContainerItem(bag, 8601, 1) -- steel axe
			doAddContainerItem(bag, 2173, 1) -- 50 platinum coints
			doAddContainerItem(bag, 2618, 1) -- Health Potion
			doAddContainerItem(bag, 2620, 1) -- Mana Potion
		
			doPlayerAddItem(cid, 2525, 1) -- dwarven shield
			doPlayerAddItem(cid, 8602, 1) -- jagged sword
			doPlayerAddItem(cid, 2463, 1) -- plate armor
			doPlayerAddItem(cid, 2457, 1) -- steel helmet
			doPlayerAddItem(cid, 2647, 1) -- plate legs
			doPlayerAddItem(cid, 2643, 1) -- leather boots
			doPlayerAddPremiumDays(cid, 350) -- automaticly 350 premmium days for servers who dont got free premmium function in config.lua Example: Chronic Elements

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

Why would you use that when you're using an AAC?
 
Because the acc doesn't give items to the new created characters..

That's why you need a script.. and that's a good one.. so use it :)

The aac* DOES give items to newly created characters. He wasn't asking for a script to replace it, he wanted a fix to his website not working properly. He does not need a script, go away.
 
Well.. i just gave him one solution to his problem.. it's up to him if he decides to do something about it or not

@Ontopic
I do suggest the uso of mods or creaturescripts as the one _Arthur posted.. since its more manageable and you can add more functions to it.. you can make it more than just a "give items" script
 
Last edited by a moderator:
Back
Top