• 01-04.05.2026 - DOUBLE EXP / SKILL EVENT!

Skrypty & Kody Bronie z w?asnym skryptem

Status
Zamknięty.

noip123

User
Zarejestrowany
Dołączył
Maj 11, 2009
Posty
37
Liczba reakcji
0
Chc? doda? bro? z w?a?nym skryptem ale nie zbyt wiem co wpisa? w weapons,xml bo nie chce mi silnika w??czy? jak wstawie moj? wersje
<wand id="2184" lvl="55" mana="26" script="suddenwand.lua">
<vocation name="Witcher"/>
oto ta linijka

a skrypt taki:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.9, 0, -1.3, 0)<<tu obliczenie ataku by?o banalnie proste bo rozdzka w 500 lvlu z 100mlvlem bedzie bi? po 900-1300>>

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end

bardzo go polecam ^^ jest to ro?d?ka bij?ca od lvla i mlvla
ale tu te? jest pytanie bo to jest z 8.50 i zauwa?y?em jakie? nowe obliczanie :D a? ?eb boli od tego obliczania a ja le? z matmy :D
COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)
i co ja mam z tym zrobic?????? nie czaje tego ale ok. prosze szybko o odpowied?

i oczywiscie jeszcze jedno pytanie ostatnie co zrobic aby ro?dzka zatruwa?a jadem np. po 100 3x potem po 50 2x i 25 x1 prosze o pomoc tu lub na gg 23725781
 
Odp: Bronie z w?asnym skryptem

lol chce sie zarejestrowa? na otland i po? godziny probuje.. napiszcie tuy bo nie da sie tam zarejestrowa? nawet lub na gg jesli mozesz
 
Ostatnia edycja:
Odp: Bronie z w?asnym skryptem

Guide officially written from scratch by Teclis@OTfans also known as Strikers@OTland at September 01, 2009 at 5:20PM~5:40PM GMT-05:00 (New York Time)


Hello, this is my first official tutorial, and here I am going to explain about the spell formulas and how to change them correctly.

Now let's start.

Story:
You are creating a spell and when you check on your lua *BOOM* you see the following:

Kod:
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -900, -3.2, -1100)
Or
Kod:
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1.0, -900, 3.2, -1100)
And you have no idea what the hell are those numbers.

Well I am going to explain.

Kod:
1.0, -900, 3.2, -1100)
The first number is the multiplier of your skill (If it's set to COMBAT_FORMULAT_LEVELMAGIC, then it will be based of magic level, if set to SKILL then your main melee skill will take over the others)

The second number is the minimum damage (If you want to make a healing spell, remove the - (negative) symbol of the second and fourth numbers)

The third number is the multiplier of your character level.

The fourth number is the maximum damage (Read the parenthesis of the second set of number)

Now, there is a difference between SKILL and LEVELMAGIC formulas.

If you want them to deal damage and not heal each one has a different setup.

Kod:
COMBAT_FORMULA_SKILL, 1.0, -100, 1.0, -200)
Will deal damage

Kod:
COMBAT_FORMULA_SKILL, -1.0, -100, -1.0, -200)
WILL HEAL THE ENEMY IF YOU ARE HIGH LEVEL OR HAVE A HIGH SKILL LEVEL

Kod:
COMBAT_FORMULA_SKILL, -1.0, 100, -1.0, 200)
Will heal the enemy

Kod:
COMBAT_FORMULA_LEVELMAGIC, 1.0, -100, 1.0, -200)
WILL HEAL THE ENEMY IF YOU ARE HIGH LEVEL OR HAVE A HIGH MAGIC LEVEL
Note: Will deal damage if you are low level and have a low magic level since minimum and maximum damage are negative

Kod:
COMBAT_FORMULA_LEVELMAGIC, -1.0, -100, -1.0, -200)
Will completely deal damage to the enemy

Kod:
COMBAT_FORMULA_LEVELMAGIC, 1.0, 100, 1.0, 200)
Will heal the enemy.


So yeah, I think you get it how SKILL and LEVELMAGIC works now.

Now let's make some calculations on how the multipliers add up to the minimum and maximum damage.

Suppose you have this:

Kod:
COMBAT_FORMULA_LEVELMAGIC, -1.0, -100, -1.0, -200)
And you are a level 100 character with 100 Magic level

first off at level 0 you would deal 100~200 damage.
Now at level 100 with 100 Magic level you would add up the first and third value (100+100) which is 200, and then add it up to both minimum and maximum damage

Which will be 300~400 damage at level 100 with 100 magic level.

So always sum up the first and third value, and them add it to both minimum and maximum values (The second and fourth).


I hope this guide help you guys make balanced spells =].
 
Status
Zamknięty.
Back
Do góry