• 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!

Question about spells and one bug

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
hi how to add that orange text?
Untitled.png

what kind of code should i use?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 120000)
setConditionFormula(condition, 1.0, -56, 1.0, -56)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
   doCombat(cid, combat, var)
   return false
end
And my second question is its pretty weird problem so if i make two types of speed up and change how fast they can run like example one speed is fast and other is slower but i tested it and it doesnt work somehow it doesnt change my original speed i always run with the same speed. So i tried to open elfbot and test is it add speed or not but elfbot shows that speed was added but dunno why but my speed was still main. I hope u guys understand what i meant to say :D
P.s maybe because i was with god acc?
 
1. In beetwen return false and doCombat:
LUA:
 doCreatureSay (cid, "mini speed up", 19)

2. In a half, but never test anything on GOD in the future if you want to be sure for 100%.
And If you can post it here.
 
1. In beetwen return false and doCombat:
LUA:
 doCreatureSay (cid, "mini speed up", 19)

2. In a half, but never test anything on GOD in the future if you want to be sure for 100%.
And If you can post it here.
Thanks with first problem. About second one i tried with non god acc and i think its the same. Somehow if u change speed formula to < or > its still run with the same speed you can decrease that speed it still run the same speed as a speed up. Example
This one supposed to give speed up but small speed up
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 42000)
setConditionFormula(condition, 1.0, -356, 1.0, -356)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
   doCombat(cid, combat, var)
   doCreatureSay (cid, "mini speed up", 19)
   return false
end
This one supposed to give faster speed up
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 28)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_HASTE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 42000)
setConditionFormula(condition, 1.0, -56, 1.0, -56)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
   doCombat(cid, combat, var)
   doCreatureSay (cid, "speed up", 19)
   return false
end
Even if formula speed is different they still run with the same speed. I cant see any differets.
 
Now I dont remember how work these formulas.

But there are many functions related to speed. getCreatureSpeed
doSetCreatureBaseSpeed or similar.
 
Guys
i have question so if i'm using doCreatureSay how to get, how he wrote that command like example now if player type "mini speed up" he gets message "mini speed up" so i wondering if player type like example MiNi SpEd Up it shows the same text in doCreatureSay if he type with all caps it shows in doCreatureSay so it's like tracking how he type that command. Is it possible?
 
Back
Top