InstantBattle and TargetRange

12/17/2021 03:10 Kymej#1
Hello,

-I would like to know if any of you made the new instant battle (hero) how did you do it? Because when I put the hero 30 when I am 19 I am still sent in the fight but of level 1 .... if someone can help me.

- When I put the parse I have this error displayed:

skill.TargetRange = byte.Parse (currentLine [5]);

if anyone can help me. Thank you !
12/17/2021 03:44 redbull2905#2
change byte to short
12/17/2021 04:08 Kymej#3
Quote:
Originally Posted by redbull2905 View Post
change byte to short
Even when I put everything in shorts the errors persist
12/17/2021 13:05 Fizo55#4
Quote:
Originally Posted by Kymej View Post
Even when I put everything in shorts the errors persist
Show us a screen
12/17/2021 17:07 Kymej#5
[Only registered and activated users can see links. Click Here To Register...]
12/17/2021 17:35 Fizo55#6
Quote:
Originally Posted by Kymej View Post
[Only registered and activated users can see links. Click Here To Register...]
You need to update the byte in the DTO & in the entity, then add-migration & update-database
12/18/2021 07:07 Kymej#7
Thanks regarding the other system you know how to do it?
12/18/2021 15:45 Fizo55#8
Quote:
Originally Posted by Kymej View Post
Thanks regarding the other system you know how to do it?
Create an instant battle maps for each differents sessions lists (E.g : Level 1 - 20 | Level 21-50 ect)

To get every sessions, u can use ServerManager.Instance.Sessions

and then run your task on each map in order to spawn the mobs
12/27/2021 23:40 InnoTx#9
Quote:
Originally Posted by Kymej View Post
- When I put the parse I have this error displayed:

skill.TargetRange = byte.Parse (currentLine [5]);

if anyone can help me. Thank you !
Change this:
skill.TargetRange = byte.Parse (currentLine [5]);

to this:

skill.TargetRange = byte.Parse (currentLine [6]);

or write me on Discord ill help when i have time : Inno#2285
12/28/2021 13:49 Fizo55#10
Quote:
Originally Posted by InnoTx View Post
Change this:
skill.TargetRange = byte.Parse (currentLine [5]);

to this:

skill.TargetRange = byte.Parse (currentLine [6]);

or write me on Discord ill help when i have time : Inno#2285
Bruh ? Definitly not a solution, the solution is to change the type
12/28/2021 21:23 InnoTx#11
Quote:
Originally Posted by Fizo55 View Post
Bruh ? Definitly not a solution, the solution is to change the type
i just told him that what worked for me but yeah... if there is another solution then go for it :D
12/28/2021 21:24 Fizo55#12
Quote:
Originally Posted by InnoTx View Post
i just told him that what worked for me but yeah... if there is another solution then go for it :D
Ofc it worked for u but do u even know how to work an array ? Cuz I don't think so
12/28/2021 22:39 Kymej#13
I did as fizo told me it worked