Added Open command to allow special doors to open
new command: insert into commands set type=0,command='Open',subcommand='',handler=508,required_status=0;
This commit is contained in:
parent
bba5be8c2f
commit
b15ec2c476
2 changed files with 11 additions and 3 deletions
EQ2/source/WorldServer/Commands
|
@ -2525,12 +2525,18 @@ void Commands::Process(int32 index, EQ2_16BitString* command_parms, Client* clie
|
|||
safe_delete(zonename);
|
||||
break;
|
||||
}
|
||||
case COMMAND_USE:{
|
||||
case COMMAND_USE: {
|
||||
Spawn* target = cmdTarget;
|
||||
if(target->IsWidget())
|
||||
if (target->IsWidget())
|
||||
((Widget*)target)->HandleUse(client, "use");
|
||||
break;
|
||||
}
|
||||
}
|
||||
case COMMAND_OPEN: {
|
||||
Spawn* target = cmdTarget;
|
||||
if (target->IsWidget())
|
||||
((Widget*)target)->HandleUse(client, "Open", WIDGET_TYPE_DOOR);
|
||||
break;
|
||||
}
|
||||
case COMMAND_ATTACK:
|
||||
case COMMAND_AUTO_ATTACK:{
|
||||
int8 type = 1;
|
||||
|
|
|
@ -869,6 +869,8 @@ private:
|
|||
#define COMMAND_BOT_SETTINGS 506
|
||||
#define COMMAND_BOT_HELP 507
|
||||
|
||||
#define COMMAND_OPEN 508
|
||||
|
||||
#define GET_AA_XML 751
|
||||
#define ADD_AA 752
|
||||
#define COMMIT_AA_PROFILE 753
|
||||
|
|
Loading…
Add table
Reference in a new issue