Raised This Month: $ Target: $400
 0% 

Help with Diablo 2 Mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
agsm
New Member
Join Date: Sep 2012
Old 02-15-2013 , 03:51   Help with Diablo 2 Mod
Reply With Quote #1

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.
agsm is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-15-2013 , 03:59   Re: Help with Diablo 2 Mod
Reply With Quote #2

What is your scripting question? Are you having an issue doing this yourself? Where is your attempted code changes?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
agsm
New Member
Join Date: Sep 2012
Old 02-15-2013 , 07:04   Re: Help with Diablo 2 Mod
Reply With Quote #3

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.
agsm is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-15-2013 , 07:20   Re: Help with Diablo 2 Mod
Reply With Quote #4

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
agsm
New Member
Join Date: Sep 2012
Old 02-15-2013 , 08:17   Re: Help with Diablo 2 Mod
Reply With Quote #5

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:
agsm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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