Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: SMART_ACTION_ACTIVATE_GAMEOBJECT (147) Open - Sets GO_STATE_ACTIVE #30006

Open
CraftedRO opened this issue May 25, 2024 · 0 comments
Open

Comments

@CraftedRO
Copy link
Contributor

Description

SMART_ACTION_ACTIVATE_GAMEOBJECT (147) seems unable to open doors, tried many combination but no luck:
when using action_param1:

8 | Open | Open - Sets GO_STATE_ACTIVE

either

9 | OpenAndUnlock | Open + Unlock - Sets GO_STATE_ACTIVE and resets GO_FLAG_LOCKED

The door won't open no matter what action_param1 we choose.

Expected behaviour

Most likely the door shoud open using one of the above action_param1.

Steps to reproduce the problem

Apply following sql, then go to .go gameobject id 18899 or .go gameobject id 101812 then use lever/s, notice nothing happen (for second it will unlock door but no open) as it does when we choose 10 Close Close - Sets GO_STATE_READY for example

 -- Lever smart ai
SET @ENTRY := 18899;
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 1 AND `entryOrGuid` = @ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 
(@ENTRY, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 147, 9, 0, 0, 0, 0, 0, 14, 33241, 18971, 0, 0, 0, 0, 0, 'On Gameobject state changed to GO_ACTIVATED - Gameobject Arugal\'s Lair (18971) with guid 33241 (fetching): Open');

 -- Lever smart ai
SET @ENTRY := 101812;
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` = @ENTRY;
DELETE FROM `smart_scripts` WHERE `source_type` = 1 AND `entryOrGuid` = @ENTRY;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 
(@ENTRY, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 147, 9, 0, 0, 0, 0, 0, 14, 20835, 18895, 0, 0, 0, 0, 0, 'On loot state changed to GO_ACTIVATED - Gameobject Courtyard Door (18895) with guid 20835 (fetching): Open and Unlock');

Branch

3.3.5

TC rev. hash/commit

d8240fb

Operating system

Windows 11 x64

Custom changes

Passive anticheat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant