Dmg zone

Join Discord

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
I want create script that take player cords and create 1x1 dmg zone.
Now i have this:
[@Main]
#ACT
mov A0 %USERMAP
mov A1 %USERX
mov A2 %USERY
formatstr "%s,%s,%s,%s,%s," %A0 %A1 %A2 %A1 %A2
MapSpell [Firewall] "%A9 +d600, +t5, +h
but wont work ;(
Some1 know why?
 

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
Littel excemple with a Healzone :

Code:
[@MakeHealZone]
#ACT
 Mov A0 %USERMAP
 Mov A1 %USERX
 Mov A2 %USERY
 FormatStr "%s,%s,%s,10" %A0 %A1 %A2
 MakeHealZone %A9 1 100 [GUILD]
 
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
hmm and with your Code I believe better is this... (not test atm)
Code:
[@Main]
#ACT
mov P0 %USERMAP
mov P1 %USERX
mov P2 %USERY
Inc  P1 1
Inc  P2 1
MapSpell [FIREWALL] "%P0,%USERX,%USERY,%P1,%P2, +d600, +t4, +h
 
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
MapSpell [Spell Type] "Map, X1, Y1, X2, Y2, Damage, Time, no Idea

I self use on my Server ICEWALL and FIREWALL

@ budyniowski test it so :

Code:
[@Main]
#ACT
mov P1 %USERX
mov P2 %USERY
Inc  P1 4
Inc  P2 4
MapSpell [FIREWALL] "%USERMAP,%USERX,%USERY,%P1,%P2, +d600, +t4, +h

I believe you need a biger radius, on my server I use Position + 2...
or test it with normal Corrds before you put things from the user on it.


Original from my Server without Damage: MapSpell [FIREWALL] "0,393,286,395,288, +d0, +t4, +h
 
Last edited:
Upvote 0

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
hmmm in formatstr U can format only 3 variables i think...
This working fine ;d :
[@Main]
#ACT
MOV A0 %USERMAP
MOV A1 %USERX
MOV A2 %USERY
FORMATSTR "%S,%S,%S," %A0 %A1 %A2
MOV A5 %A9
FORMATSTR "%S,%S," %A1 %A2
MOV A6 %A9
FORMATSTR "%S%S +d600, +t5, +h" %A5 %A6
MapSpell [Firewall] "%A9
EDIT:
I found a shorter way with less variables, shorter=better then I post it for all ;]
[@Main]
#ACT
MOV A0 %USERMAP
MOV A1 %USERX
MOV A2 %USERY
FORMATSTR "%S,%S,%S," %A0 %A1 %A2
MOV A3 %A9
FORMATSTR "%S,%S,%S, +d20000, +t5, +h" %A3 %A1 %A2
MapSpell [Firewall] "%A9


THX for helping every1 ;)

NEXT EDIT:
1 more question
Can I use only FIREWALL, ICEWALL and THUNTER in mapspell? or maby some other spells to?
 
Last edited:
Upvote 0

Coly

LOMCN Developer
Developer
Mar 31, 2005
1,399
33
195
Germany
hmm ok, no Idea...
I don't work any more on Mir3, only a bit help on my Server but most of the time I spend my own Server / Client Project.

The Things I don't understand is can you not use this :

MapSpell [FIREWALL] "%USERMAP,%USERX,%USERY,%USERX,%USERY, +d600, +t4, +h

with the Spells if I not wrong only the 3 Spells you can use...
 
Upvote 0

budyniowski

Dedicated Member
Dedicated Member
Dec 16, 2007
149
0
63
Warsaw, Poland
MapSpell [FIREWALL] "%USERMAP,%USERX,%USERY,%USERX,%USERY, +d600, +t4, +h

This 1 wont work, i haven't ideas why ;[ maby only normal alpha numeric and variables can be used for define mapspell? dunno ... but finaly script work gr8 :D
 
Upvote 0