• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Starting items in config.inc.php

Veterana

Oldschool Player
Joined
May 4, 2010
Messages
194
Reaction score
7
I didn't get any help that worked last time so i try again.


How can i make Paladins start with more then one spear?
For example 5 spears when they login?
(Using Nicaw)

The bold code is the spear.


Here is the code:
################# Paladin #######################
$id = 3;
$cfg['vocations'][$id]['name'] = 'Paladin';
$cfg['vocations'][$id]['level'] = 8;
$cfg['vocations'][$id]['group'] = 0;
$cfg['vocations'][$id]['maglevel'] = 0;
$cfg['vocations'][$id]['health'] = 185;
$cfg['vocations'][$id]['mana'] = 35;
$cfg['vocations'][$id]['cap'] = 470;
$cfg['vocations'][$id]['enabled'] = true;

$cfg['vocations'][$id]['look'][0] = 137;
$cfg['vocations'][$id]['look'][1] = 129;

$cfg['vocations'][$id]['skills'][0] = 10;
$cfg['vocations'][$id]['skills'][1] = 10;
$cfg['vocations'][$id]['skills'][2] = 10;
$cfg['vocations'][$id]['skills'][3] = 10;
$cfg['vocations'][$id]['skills'][4] = 10;
$cfg['vocations'][$id]['skills'][5] = 10;
$cfg['vocations'][$id]['skills'][6] = 10;

$cfg['vocations'][$id]['equipment'][1] = 2480;
$cfg['vocations'][$id]['equipment'][2] = 2172;
$cfg['vocations'][$id]['equipment'][3] = 2000;
$cfg['vocations'][$id]['equipment'][4] = 2484;
$cfg['vocations'][$id]['equipment'][6] = 2530;
$cfg['vocations'][$id]['equipment'][7] = 2468;
$cfg['vocations'][$id]['equipment'][8] = 2643;
$cfg['vocations'][$id]['equipment'][10] = 2389
 
Delete that line,a nd add this to mods?

XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" enabled="yes">
	<event type="login" name="FirstItems" event="script"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<mod name="First Items" enabled="yes">
	<event type="login" name="FirstItems" event="script"><![CDATA[
		function onLogin(cid)
			if getPlayerGroupId(cid) < 4 and getPlayerStorageValue(cid, 41213) ~= 1 then
			if getPlayerVocation(cid) == 4 then
			doPlayerAddItem(cid, spear_id, 5)
			setPlayerStorageValue(cid, 41213, 1)
			end
			end
			end
	]]></event>
</mod>
 
Back
Top