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

Lua Starting equipment

Fairywintah

RoHaN-OTs - Support and Mapper.
Joined
Nov 5, 2009
Messages
1,516
Reaction score
13
Hello, were can i find an script that make some eq for player who made a character from account manager 0.3.6 tfs? can somone give me the script

Equipment:
Steel helmet
plate armor
plate legs

Weapon:
Sorc and druid paladin and knight weapon.
paladins ammo shall be infinte.

shield: dwarfen shield?

Rune:
manarune ID: 2298
Sudden death rune
Ulitmate rune, i want this runes to be infinte
can somonemake it? or give it?
 
mods/firstitems.xml or in phpmyadmin on sampels :)

Thanks but were i shall put the ID?

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes">
	<config name="firstitems_config"><![CDATA[
		config = {
			storage = 30001,
			items = {2050, 2382}
		}
	]]></config>
	<event type="login" name="FirstItems" event="script"><![CDATA[
		domodlib('firstitems_config')

		function onLogin(cid)
			if(getPlayerStorageValue(cid, config.storage) > 0) then
				return true
			end

			for _, id in ipairs(config.items) do
				doPlayerAddItem(cid, id, 1)
			end

			if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then
				doPlayerAddItem(cid, 2651, 1)
			else
				doPlayerAddItem(cid, 2650, 1)
			end

			doAddContainerItem(doPlayerAddItem(cid, 1987, 1), 2674, 1)
			setPlayerStorageValue(cid, config.storage, 1)
			return true
		end
	]]></event>
</mod>

Like this?:
PHP:
 doPlayerAddItem(cid, 2651, 1)
            else
                doPlayerAddItem(cid, 2650, 1)
after here you suppost to do new else and shit?
 
Rune:
manarune ID: 2298
Sudden death rune
Ulitmate rune, i want this runes to be infinte
can somonemake it? or give it?

goto config.lua and search for this:
Code:
removeRuneCharges
and replace that raw with this :
LUA:
        removeRuneCharges = "false"
 
NOT THAT, THE STARTING EUIPTMENT, i did a script in creature script and one in mods and firstitems. but its says cannot load /./
omfg
 
HELP FAST!!!, i really need to fix start item, look

I got this


firstitem.lua > data > Creaturescripts > scripts
firstite.lua > mods
its still says cannot load it -.-
 
Its not errors, When i try to open the server with the .exe file its says "cannot load Creaturescripts and i got some new scripts in there idk if they are fucking it up, i just want to make some easy thing like backpack with new start gear so i don't need to summon items to them -.-
 
LUA:
function onLogin(cid)
doPlayerAddItem(cid, 2651, 1) 
           	 elseif getPlayerVocation(cid, 1, 5) then 
               	doPlayerAddItem(cid, 2650, 1) 
return true
	end

easy to make a larger script. Just pm me.

if any voc but not 1,5 will get 2651 but voc 1,5 will get 2650 just an ex..
 
Back
Top