Mirage Source http://miragesource.net/forums/ |
|
Random Damage for melee players and NPC'S. http://miragesource.net/forums/viewtopic.php?f=183&t=5568 |
Page 1 of 46 |
Author: | Jack [ Mon May 04, 2009 5:54 pm ] |
Post subject: | Random Damage for melee players and NPC'S. |
This tutorial is simple to follow and is very good and simple. 0.5/5 Difficulty 1/5 Understanding code Ok lets begin. This is all server side code btw. Go to Game logic and put at bottom of it add: Code: Public Function Rand(ByVal low As Long, high As Long) As Long Rand = Int((high - low + 1) * Rnd) + low End Function Now find Code: If Not CanPlayerCriticalHit(index) Then change Code: Damage = GetPlayerDamage(Index) - GetPlayerProtection(i) with Code: Damage = GetPlayerDamage(index) Damage = Rand(Damage * 0.8, Damage * 1.1) This should help you guys learn some more of damage ranges, ill let you figure out how to do it with Magic damage ranges and how to make it have damage ranges when you attack Npcs.. Dont want everyone copying and pasting . Hope it helps also had help from Dugor if there is any problems message me about it |
Author: | wanai [ Tue Jan 04, 2022 3:33 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Econ |
Author: | wanai [ Tue Jan 04, 2022 3:34 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
94.1 |
Author: | wanai [ Tue Jan 04, 2022 3:35 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Bett |
Author: | wanai [ Tue Jan 04, 2022 3:36 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Bett |
Author: | wanai [ Tue Jan 04, 2022 3:38 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Arth |
Author: | wanai [ Tue Jan 04, 2022 3:39 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Donn |
Author: | wanai [ Tue Jan 04, 2022 3:40 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Sear |
Author: | wanai [ Tue Jan 04, 2022 3:41 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
XVII |
Author: | wanai [ Tue Jan 04, 2022 3:42 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
WCNo |
Author: | wanai [ Tue Jan 04, 2022 3:43 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Adri |
Author: | wanai [ Tue Jan 04, 2022 3:44 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Meta |
Author: | wanai [ Tue Jan 04, 2022 3:45 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Cris |
Author: | wanai [ Tue Jan 04, 2022 3:47 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
lass |
Author: | wanai [ Tue Jan 04, 2022 3:48 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Spor |
Author: | wanai [ Tue Jan 04, 2022 3:49 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Flam |
Author: | wanai [ Tue Jan 04, 2022 3:50 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Ever |
Author: | wanai [ Tue Jan 04, 2022 3:51 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Brot |
Author: | wanai [ Tue Jan 04, 2022 3:52 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Keny |
Author: | wanai [ Tue Jan 04, 2022 3:53 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Capu |
Author: | wanai [ Tue Jan 04, 2022 3:54 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Bonu |
Author: | wanai [ Tue Jan 04, 2022 3:55 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Larr |
Author: | wanai [ Tue Jan 04, 2022 3:57 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Gent |
Author: | wanai [ Tue Jan 04, 2022 3:58 pm ] |
Post subject: | Re: Random Damage for melee players and NPC'S. |
Prem |
Page 1 of 46 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |