What is compiling and how to configure .INLs?

Read log files for errors! If this fails, come here for help

Moderator: Forum Moderator

Post Reply
Magnuz
Peon
Posts: 47
Joined: Thu Mar 29, 2007 2:49 pm
Location: Sweden

What is compiling and how to configure .INLs?

Post by Magnuz » Sat Apr 14, 2007 4:40 am

There are a few things I want to change:

1. The Amount of XP earned from several events.
2. Earning XP from backing up the Bomb-planter (in a certain radius).
3. The amount of XP required to advance in level.
4. The item prices to a standard without increase/level.

And when i look inside these files, I have seen HTML and that is enough confusing for me.. can you explain about recompiling and how to change the files? Thanks :D
--- Please enter the following information for support ---
War3ft Version: 3.0rc6
Amxmodx Version: 1.76d
Metamod Version: 1.19
amxx list:
amxx modules:
meta list:

mexykanu
Rifleman
Posts: 176
Joined: Sun Oct 22, 2006 8:06 am

Post by mexykanu » Sat Apr 14, 2007 12:57 pm

for 1. and 2. search war3ft.cfg

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Sat Apr 14, 2007 1:02 pm

3) Found in war3ft.inl - like war3ft_init
4) items.inl - they're in an initialization function

to compile it after changes check the amxx wiki for compiling instructions
No Support via PM

Magnuz
Peon
Posts: 47
Joined: Thu Mar 29, 2007 2:49 pm
Location: Sweden

Post by Magnuz » Sun Apr 15, 2007 2:17 am

for 1. and 2. search war3ft.cfg
Found this, but I don't know what to change, and there is an xp Radius but it doesn't work or do I need to add a command for giving xp when objective is completed?

// Experience Options

wc3_xp_multiplier 1.0 // set the level required to gain a level as a multiple (default 1.0)
wc3_xp_weap_multiplier 1 // Award XP based on the weapon used (default is 1)
wc3_min_players 2 // Minimum amount of players needed b4 awarding XP (default is 2)
wc3_xp_auto_average 0 // With this option set to 1, the joining players will receive the average amount of XP that all of the players have (SHORT TERM XP ONLY, default is 0)
wc3_show_objectives 1 // If enabled, will display message in chat to show XP they gain for completing certain objectives (default is 1)
wc3_show_kill_obj 0 // Shows how much XP you gain for killing someone (each kill, default is 0)
wc3_xp_radius 1000 // Radius to give XP to teammates near where the special objective is completed (rescued hosties, bomb planted, killed vip, vip escaped, default is 750)


3) Found in war3ft.inl - like war3ft_init
What is the lines called and what do I change?
4) items.inl - they're in an initialization function
I found this, am I on the right track?

// We created this to allow for different prices of items at different levels
ITEM_Cost( id, iItem )
{
// How much should ratio increase per level?
new Float:fInc = ( 1.0 - ITEM_COST_RATIO ) / float( MAX_LEVELS );

// Cost * ratio (ITEM_COST_RATIO to 1.0 dependent on level)
new Float:fRatio = (float( p_data[id][P_LEVEL] ) * fInc) + ITEM_COST_RATIO;

return floatround( float( ITEM_COST[iItem] ) * fRatio );
}

What do I change here so Item prices will stay on these prices for all levels?

ITEM_COST[ITEM_ANKH] = 1500; // Ankh of Reincarnation
ITEM_COST[ITEM_BOOTS] = 2500; // Boots of Speed
ITEM_COST[ITEM_CLAWS] = 1000; // Claws of Attack
ITEM_COST[ITEM_CLOAK] = 800; // Cloak of Shadows
ITEM_COST[ITEM_MASK] = 2000; // Mask of Death
ITEM_COST[ITEM_NECKLACE] = 800; // Necklace of Immunity
ITEM_COST[ITEM_FROST] = 2000; // Orb of Frost
ITEM_COST[ITEM_HEALTH] = 1000; // Periapt of Health
ITEM_COST[ITEM_TOME] = 4000; // Tome of Experience
ITEM_COST[ITEM_SCROLL] = 6000; // Scroll of Respawning
ITEM_COST[ITEM_PROTECTANT] = 1500; // Mole Protectant
ITEM_COST[ITEM_HELM] = 3000; // Helm of Excellence
ITEM_COST[ITEM_AMULET] = 1500; // Amulet of the Cat
ITEM_COST[ITEM_SOCK] = 1500; // Sock of the Feather
ITEM_COST[ITEM_GLOVES] = 1750; // Flaming Gloves of Warmth
ITEM_COST[ITEM_RING] = 1000; // Ring of Regeneration + 1
ITEM_COST[ITEM_CHAMELEON] = 9000; // Chameleon
ITEM_COST[ITEM_MOLE] = 16000; // Mole
--- Please enter the following information for support ---
War3ft Version: 3.0rc6
Amxmodx Version: 1.76d
Metamod Version: 1.19
amxx list:
amxx modules:
meta list:

User avatar
Geesu
<b>King of the world!</b>
Posts: 3159
Joined: Tue Jul 05, 2005 9:24 pm
Contact:

Post by Geesu » Sun Apr 15, 2007 8:05 am

To make it so the prices don't change on each level you need to change the ITEM_Buy function i believe - I think that is what actually subtracts the money - just find wc3_set_user_money
No Support via PM

Magnuz
Peon
Posts: 47
Joined: Thu Mar 29, 2007 2:49 pm
Location: Sweden

Post by Magnuz » Mon Apr 16, 2007 3:58 am

I searched the items.inl for "wc3_set" and it didn't find anything. Should I add it somewhere in the file?
--- Please enter the following information for support ---
War3ft Version: 3.0rc6
Amxmodx Version: 1.76d
Metamod Version: 1.19
amxx list:
amxx modules:
meta list:

Post Reply