AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with Diablo 2 Mod (https://forums.alliedmods.net/showthread.php?t=208565)

agsm 02-15-2013 03:51

Help with Diablo 2 Mod
 
Hello,
I need to know if any of you can edit this mod.

https://forums.alliedmods.net/showthread.php?t=116579

I need that when a player connects to the server does not automatically open the menu of "creating, selecting and elimar character."
Instead, I want that when the player is connected to the server can automatically join at terrorists' team.

Can someone edit that option and you can only open the menu of "create, select and delete" writing for example:

say / heroes and to call this function?
register_clcmd ("main_hero_menu_connect");


I think you need to edit the file on the events.inl:
public Ev_JoinTeam ()

I hope you can help me.

YamiKaitou 02-15-2013 03:59

Re: Help with Diablo 2 Mod
 
What is your scripting question? Are you having an issue doing this yourself? Where is your attempted code changes?

agsm 02-15-2013 07:04

Re: Help with Diablo 2 Mod
 
Let's see, I am explaining clearly what I would like to modify. I put also the link of the mod.

I want to disable: public Ev_JoinTeam () in events.inl

but to disable the mod does not work.

Somebody knows what can I do????, Please if anyone can help.

The people who do not care to respond, please don't respond to this post with suggestions or questions absurd.

YamiKaitou 02-15-2013 07:20

Re: Help with Diablo 2 Mod
 
Are you asking us to do it for you or to help guide you along the path to where you can do it yourself?

If you are trying to do it yourself, show us what you have attempted so far and the results of those attempts

agsm 02-15-2013 08:17

Re: Help with Diablo 2 Mod
 
Lo quiero hacer es lo siguiente:

1. I need that when a player connects to the server does not automatically open the menu of "creating, selecting and delete character."

To disable I edited the option that had showing when somebody is connecting. I do it that editing the events.inl in the next section:

/*public Ev_JoinTeam()
{
new id = read_data(1);
static user_team[32];

read_data(2, user_team, 31);

if( !is_user_connected(id) )
return 0;

switch( user_team[0] )
{
case 'S':
{
main_hero_menu_connect(id);
}
}

return 0;
}*/

2. Then I edited the file cvars.inl adding the following function

register_clcmd("say /heroes","main_hero_menu_connect");

I did this for writing / heroes show me the option of "Creating, Selecting and delete character."

3. Then, I compiled diablo2LOD.sma and it compiles without error, but when I connect to the server the mod doesn't work.

4. I ask for advice to help me to change this option. I need it so that when a player connects to the server automatically sends to the TT team.

5. The mod for the one I want to help me edit is on the following link:


All times are GMT -4. The time now is 20:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.