We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no
1.7 (Master)
all (listed below)
No response
onStepOut(creature, item, position, fromPosition) - position, fromPosition are always the same
N/A
changes drowning.lua to print positions for onStepIn and onStepOut
local condition = Condition(CONDITION_DROWN) condition:setParameter(CONDITION_PARAM_PERIODICDAMAGE, -20) condition:setParameter(CONDITION_PARAM_TICKS, -1) condition:setParameter(CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(creature, item, position, fromPosition) print("onStepIn position: ", position) print("onStepIn fromPosition: ", fromPosition) if creature:isPlayer() then creature:addCondition(condition) creature:addAchievementProgress("Deep Sea Diver", 1000000) end return true end function onStepOut(creature, item, position, fromPosition) print("onStepOut position: ", position) print("onStepOut fromPosition: ", fromPosition) if creature:isPlayer() then creature:removeCondition(CONDITION_DROWN) end return true end
goto position 374, 616, 13 start walking to left and right check printed positions
onStepOut print for position and fromPosition the same values
onStepOut position: Position(374, 616, 13) onStepOut fromPosition: Position(374, 616, 13) onStepIn position: Position(375, 616, 13) onStepIn fromPosition: Position(374, 616, 13)
onStepOut should print for position and fromPosition different values
The text was updated successfully, but these errors were encountered:
No branches or pull requests
By submitting this bug issue, you agree to the following.
Does this bug crash tfs?
no
Server Version
1.7 (Master)
Operation System
all (listed below)
OS Description
No response
Bug description
onStepOut(creature, item, position, fromPosition) - position, fromPosition are always the same
Possible Pull Requests which are to blame
N/A
Steps to reproduce
changes drowning.lua to print positions for onStepIn and onStepOut
goto position 374, 616, 13
start walking to left and right
check printed positions
Actual Behavior
onStepOut print for position and fromPosition the same values
Expected Behavior
onStepOut should print for position and fromPosition different values
Backtrace
The text was updated successfully, but these errors were encountered: