• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Give extra % magic or physical damage to sets.

Progenosis

Member
Joined
Sep 6, 2011
Messages
131
Reaction score
18
I come here to ask for a little help, I've inserted some sprites to my server, those are two different sets.
What I want is not just giving to them extra skills properties but to give them extra percentage for magical and physycal damage, for example:

X Hat + 10% Magic damage
X Armor + 20% Magic Damage
X Legs + 15% Magic damage

Y Hat + 10% Physical damage
Y Armor + 20% Physical Damage
Y Legs + 15% Physical damage

Z bots + 5% Magic Damage + 5% Physical Damage

One thing I was thinking was just to increment skills on a percantage:
Magic skill*1.1 = 10% extra magic skills, but this means extra 10% damage?
Anyway, I don't know how to edit that :/

Someone help?
 
Easy, fast, reliable way? C++.
Hard, long, boring, unreliable way? LUA.

I can do it in LUA, but I won't do it for free...
Although I'm the helping type of guy, this type of script can take a long time to get it to be working 100%. I apologize.

Good luck,
Zum~

*EDIT-1*: This just hit my mind, I think some thread available in the C++ section of the resources board has this type of idea...I don't have time to search for it though... Good luck :D.
 
Last edited:
Easy, fast, reliable way? C++.

How much that will cost? :$

@OnTopic:

You can give more skills with Movements, it's really simple doing something like this:

LUA:
local dist = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(dist, CONDITION_PARAM_TICKS, -1)
setConditionParam(dist, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 10)

function onEquip(cid, item, slot)
	if getPlayerSlotItem(cid, 1).itemid == HATid and getPlayerSlotItem(cid, 4).itemid == ARMORid and getPlayerSlotItem(cid, 7).itemid == LEGSid then
		doAddCondition(cid, dist)
	end
return true
end

(Is just an example)
 
How much that will cost? :$

@OnTopic:

You can give more skills with Movements, it's really simple doing something like this:

LUA:
local dist = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(dist, CONDITION_PARAM_TICKS, -1)
setConditionParam(dist, CONDITION_PARAM_SKILL_DISTANCEPERCENT, 10)

function onEquip(cid, item, slot)
	if getPlayerSlotItem(cid, 1).itemid == HATid and getPlayerSlotItem(cid, 4).itemid == ARMORid and getPlayerSlotItem(cid, 7).itemid == LEGSid then
		doAddCondition(cid, dist)
	end
return true
end

(Is just an example)

Thanks, this really helpsme a lot!!
 
You should try this, though it's only for extra magic damage but I'm sure someone could create for physical damage aswell. :p
 
Back
Top