• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Helmet of the deep, update 8.6 (Solved)

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
I have this script of Helmet of the deep.
Now only when you eat Coconut Shrimp Bake you have +300 speed for 6 hours.
Can someone show me how?

XML:
	<movevent type="StepIn" itemid="5405" event="script" value="water.lua" />
	<movevent type="StepIn" itemid="5406" event="script" value="water.lua" />
	<movevent type="StepIn" itemid="5407" event="script" value="water.lua" />
	<movevent type="StepIn" itemid="5408" event="script" value="water.lua" />
	<movevent type="StepIn" itemid="5409" event="script" value="water.lua" />
	<movevent type="StepIn" itemid="5410" event="script" value="water.lua" />
Lua:
local condition = createConditionObject(CONDITION_DROWN)
setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -50)
setConditionParam(condition, CONDITION_PARAM_TICKS, -3)
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000)

function onStepIn(cid, item, pos)
	if isPlayer(cid) == TRUE then
		doAddCondition(cid, condition)
	end
end

function onStepOut(cid, item, pos)
	doRemoveCondition(cid, CONDITION_DROWN)
end
 
Removing this won't cause any problems?

[cpp]//
if(!g_moveEvents->onPlayerEquip(const_cast<Player*>(this), const_cast<Item*>(item), (slots_t)index, true))
return RET_CANNOTBEDRESSED;[/cpp]
 
You only won't be able to prevent equipping by using return false in an onEquip script, but the benefits of removing it are much greater than that.
 
53609369.jpg


My console is crashing and closing. Is this patch in CPP the cause?
[cpp]//
if(!g_moveEvents->onPlayerEquip(const_cast<Player*>(this), const_cast<Item*>(item), (slots_t)index, true))
return RET_CANNOTBEDRESSED;[/cpp]
 
it's not, i haven't been getting any crashes like that. use latest mingw to compile, and if it keeps crashing then start using gdb.
Ok, it's working now BUT if player is underwater and remove helmet it will not transform to 5461, so another player without storage can use helmet with +300 speed
Explain: If player is underwater and remove helmet it must transform to 5461
yeye bb that worked fine here always
 
Last edited:
Back
Top