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

Solved Wand Script

AnarchGov

Member
Joined
Oct 3, 2011
Messages
263
Reaction score
6
So i have a question. I have a wand script where the wands damage is dependent on the characters level that is using it...Here is the formula:

Lua:
function onGetFormulaValues(cid, level, maglevel)
local min = -(level * 1.0) * 1.0
local max = -(level * 3.0) * 1.0
return min, max
end[code=lua]

My question is..if i want to make it hit a set damage like normaly, how would i do that in a lua script?(i know i can do it in weapons.xml but i want to do it in the script)

So say i wanted to change the formula above to instead make the wand hit anywhere from 100-300 no matter what..how would i do that?

I hope i was clear enough...thanks guys.

REP++
 
Back
Top