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

Configuring Forgotten Server 022 SQL

mbonc

New Member
Joined
Jul 12, 2007
Messages
32
Reaction score
2
Location
VA
Hello, I was wondering if its possible to change the following things somewhere:

Disabling the Cap System

Configuring the Account Manager to start with certain items
 
1. use flags. Go here
2. Create a file named newequipment.lua in the movements > scripts folder and paste this in it:
(Credits go to Sam21 on otfans)
Code:
--No Vocation
    if getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 0 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2467, 1) -- leather armor
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2789, 100) -- brown mushrooms
    setPlayerStorageValue(cid, 3169, 1)
	
	
-- Sorcerer	
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 1 then
        doPlayerAddItem(cid, 2515, 1) -- guardian shield
        doPlayerAddItem(cid, 2187, 1) -- wand of inferno
        doPlayerAddItem(cid, 2656, 1) -- blue robe
        doPlayerAddItem(cid, 2195, 1) -- boh
        doPlayerAddItem(cid, 2647, 1) -- plate legs
        doPlayerAddItem(cid, 2491, 1) -- crown helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2789, 100) -- brown mushrooms
        doPlayerAddItem(cid, 2273, 1) -- ultimate healing rune
        doPlayerAddItem(cid, 2313, 1) -- explosion rune
        doPlayerAddItem(cid, 2268, 1) -- sudden death rune
    setPlayerStorageValue(cid, 3169, 1)
	

-- Druid
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 2 then
        doPlayerAddItem(cid, 2515, 1) -- guardian shield
        doPlayerAddItem(cid, 2183, 1) -- tempest rod
        doPlayerAddItem(cid, 2656, 1) -- blue robe
        doPlayerAddItem(cid, 2195, 1) -- boh
        doPlayerAddItem(cid, 2647, 1) -- plate legs
        doPlayerAddItem(cid, 2491, 1) -- crown helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
        doPlayerAddItem(cid, 2789, 100) -- brown mushrooms		
        doPlayerAddItem(cid, 2273, 1) -- ultimate healing rune
        doPlayerAddItem(cid, 2313, 1) -- explosion rune
        doPlayerAddItem(cid, 2268, 1) -- sudden death rune
    setPlayerStorageValue(cid, 3169, 1)

	
-- Paladin
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 3 then
        doPlayerAddItem(cid, 2455, 1) -- crossbow
        --doPlayerAddItem(cid, 2376, 1) not used
        doPlayerAddItem(cid, 2476, 1) -- knight armor
        doPlayerAddItem(cid, 2195, 1) -- boh
        doPlayerAddItem(cid, 2477, 1) -- knight legs
        doPlayerAddItem(cid, 2475, 1) -- warrior helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
        doPlayerAddItem(cid, 2547, 100) -- bolts
	doPlayerAddItem(cid, 2789, 100) -- brown mushrooms
        doPlayerAddItem(cid, 2273, 1) -- ultimate healing rune
        doPlayerAddItem(cid, 2311, 1) -- heavy magic missile
    setPlayerStorageValue(cid, 3169, 1)

	
-- Knight
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 4 then
        doPlayerAddItem(cid, 2519, 1) -- crown shield
        doPlayerAddItem(cid, 2431, 1) -- stonecutter axe
        doPlayerAddItem(cid, 2487, 1) -- crown armor
        doPlayerAddItem(cid, 2195, 1) -- boh
        doPlayerAddItem(cid, 2488, 1) -- crown legs
        doPlayerAddItem(cid, 2497, 1) -- crusader helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2789, 100) -- brown mushrooms
        doPlayerAddItem(cid, 2273, 1) -- ultimate healing rune
        doPlayerAddItem(cid, 2311, 1) -- heavy magic missile
        doPlayerAddItem(cid, 2313, 1) -- explosion rune
    setPlayerStorageValue(cid, 3169, 1)
		
    end
end
Then in movements.xml put this:
Code:
<movevent event="StepIn" actionid="1021" script="newequipment.lua" />
Now set the temple tiles in your mapeditor to actionid 1021.
Change 1021 to an actionid that you have not used yet if you already have it for a different script.

Don't forget to edit the file to your own equipment. Any extra items you add (runes etc. will go in backpack)
 
I got this
´<eof>´ expected near near ´end´
Any Idea? (Iam Using a BAD movement script, since my map is just converted from 7.92 to 8.0)
 
BullenFTW said:
I got this
´<eof>´ expected near near ´end´
Any Idea? (Iam Using a BAD movement script, since my map is just converted from 7.92 to 8.0)

Try this one, its the one i use:
Code:
function onStepIn(cid, item, pos)

--No Vocation
    if getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 0 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2652, 1) -- green tunic
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2674, 5) -- 5 apple
		doPlayerAddItem(cid, 2554, 1) -- shovel
        doPlayerAddItem(cid, 2120, 1) -- rope
        doPlayerAddItem(cid, 2398, 1) -- mace
        doPlayerAddItem(cid, 2386, 1) -- axe
        doPlayerAddItem(cid, 2182, 1) -- snakebite rod
		doPlayerAddItem(cid, 2190, 1) -- wand of vortex
    setPlayerStorageValue(cid, 3169, 1)
	
	
-- Sorcerer	
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 1 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2652, 1) -- green tunic
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2674, 5) -- 5 apple
		doPlayerAddItem(cid, 2554, 1) -- shovel
        doPlayerAddItem(cid, 2120, 1) -- rope
        doPlayerAddItem(cid, 2398, 1) -- mace
        doPlayerAddItem(cid, 2386, 1) -- axe
        doPlayerAddItem(cid, 2182, 1) -- snakebite rod
		doPlayerAddItem(cid, 2190, 1) -- wand of vortex
    setPlayerStorageValue(cid, 3169, 1)
	

-- Druid
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 2 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2652, 1) -- green tunic
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2674, 5) -- 5 apple
		doPlayerAddItem(cid, 2554, 1) -- shovel
        doPlayerAddItem(cid, 2120, 1) -- rope
        doPlayerAddItem(cid, 2398, 1) -- mace
        doPlayerAddItem(cid, 2386, 1) -- axe
        doPlayerAddItem(cid, 2182, 1) -- snakebite rod
		doPlayerAddItem(cid, 2190, 1) -- wand of vortex
    setPlayerStorageValue(cid, 3169, 1)

	
-- Paladin
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 3 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2652, 1) -- green tunic
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2674, 5) -- 5 apple
		doPlayerAddItem(cid, 2554, 1) -- shovel
        doPlayerAddItem(cid, 2120, 1) -- rope
        doPlayerAddItem(cid, 2398, 1) -- mace
        doPlayerAddItem(cid, 2386, 1) -- axe
        doPlayerAddItem(cid, 2182, 1) -- snakebite rod
		doPlayerAddItem(cid, 2190, 1) -- wand of vortex
    setPlayerStorageValue(cid, 3169, 1)

	
-- Knight
    elseif getPlayerStorageValue(cid, 3169) == -1 and getPlayerVocation(cid) == 4 then
        doPlayerAddItem(cid, 2512, 1) -- wooden shield
        doPlayerAddItem(cid, 2376, 1) -- sword
        doPlayerAddItem(cid, 2652, 1) -- green tunic
        doPlayerAddItem(cid, 2643, 1) -- leather boots
        doPlayerAddItem(cid, 2649, 1) -- leather legs
        doPlayerAddItem(cid, 2461, 1) -- leather helmet
        doPlayerAddItem(cid, 1998, 1) -- backpack
	doPlayerAddItem(cid, 2674, 5) -- 5 apple
		doPlayerAddItem(cid, 2554, 1) -- shovel
        doPlayerAddItem(cid, 2120, 1) -- rope
        doPlayerAddItem(cid, 2398, 1) -- mace
        doPlayerAddItem(cid, 2386, 1) -- axe
        doPlayerAddItem(cid, 2182, 1) -- snakebite rod
		doPlayerAddItem(cid, 2190, 1) -- wand of vortex
    setPlayerStorageValue(cid, 3169, 1)
		
    end
end
 
Back
Top