Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERROR: Can't resolve <DEFNAME>
Author Message
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #1
ERROR: Can't resolve <DEFNAME>
Hello!

My script:

Code:
[REGIONTYPE R_ENTERSOMEAREA]
ON=@STEP
IF (<DEFNAME>==A_ASTRAL_dungeon_1)
    IF (<SRC.BASEID>==c_ASTRAL_LORD)
        IF (<SRC.HITS> < ((<SRC.MAXHITS>*20)/100))
            IF (25 > <R100>)
            SERV.NEWITEM I_ASTRAL_FIRE_1
            NEW.P=<SRC.P>
            NEW.ATTR=ATTR_DECAY
            NEW.TIMER=5
            SERV.NEWITEM I_ASTRAL_FIRE_2
            NEW.P=<SRC.P>
            NEW.ATTR=ATTR_DECAY
            NEW.TIMER=5
            ENDIF
        ENDIF
    ENDIF
ENDIF

Error: IF (<DEFNAME>==A_ASTRAL_dungeon_1)
What is wrong, my friends?
Thank you!


Attached File(s) Thumbnail(s)
   
03-25-2014 10:50 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: ERROR: Can't resolve <DEFNAME>
<Region.Defname>
03-25-2014 11:43 PM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #3
RE: ERROR: Can't resolve <DEFNAME>
Code:
IF (<REGION.DEFNAME>==A_ASTRAL_dungeon_1)

Similar error.


Attached File(s) Thumbnail(s)
       
(This post was last modified: 03-26-2014 12:12 AM by Russian.)
03-26-2014 12:01 AM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #4
RE: ERROR: Can't resolve <DEFNAME>
Code:
[regiontype r_test]
ON=@Step
if (<region.defname>==a_mistas)
    serv.b work
endif

It does work for me with latest build.
03-26-2014 12:23 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #5
RE: ERROR: Can't resolve <DEFNAME>
I download this:
http://forum.spherecommunity.net/sshare.php?srt=4

SphereSvr(64bitTime)[win32].zip (v. r1777) Hits: 278 Size: 1.16 MB Feb 7th, 2014, 4:19 am

Please recommend Sphere server.

I download: http://nightly.prerelease.sphere.torfo.org/
Download latest Windows build (March 25, 2014, 12:08 am)

And this sphere server have similar error.
(This post was last modified: 03-26-2014 12:35 AM by Russian.)
03-26-2014 12:32 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #6
RE: ERROR: Can't resolve <DEFNAME>
try <REGION.REGION.DEFNAME>

<REGION.DEFNAME> sometimes can miss the real region because if used inside an multi region, the reference will be the multi. So <REGION.REGION.DEFNAME> will work fine because even inside multis they always get the real region as reference

but you're using REGIONTYPE, so the correct trigger sould be @Enter instead @Step. Or if you're using this on a item, you can still using @Step but must change REGIONTYPE to TYPE or EVENTS
03-26-2014 01:22 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #7
RE: ERROR: Can't resolve <DEFNAME>
<REGION.REGION.DEFNAME> Similar error
03-26-2014 01:31 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: ERROR: Can't resolve <DEFNAME>
how A_ASTRAL_dungeon_1 is defined?
03-26-2014 02:22 AM
Find all posts by this user Like Post Quote this message in a reply
Russian
Journeyman
*

Posts: 75
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 0



Post: #9
RE: ERROR: Can't resolve <DEFNAME>
(03-26-2014 02:22 AM)darksun84 Wrote:  how A_ASTRAL_dungeon_1 is defined?

Code:
[AREA Astral dungeon]
P=6054,936,15,0
RECT=5989,812,6064,945,0
FLAGS=REGION_FLAG_NOBUILDING
RAINCHANCE=0
COLDCHANCE=0
EVENTS=R_DEFAULT, R_ENTERSOMEAREA
TAG.ARENA=1

I try do this:

Code:
[REGIONTYPE R_ENTERSOMEAREA]
ON=@STEP
IF (<REGION.DEFNAME>==A_ASTRAL_DUNGEON_1)

Code:
[AREADEF A_ASTRAL_DUNGEON_1]
P=6054,936,15,0
RECT=5989,812,6064,945,0
FLAGS=REGION_FLAG_NOBUILDING
RAINCHANCE=0
COLDCHANCE=0
EVENTS=R_DEFAULT, R_ENTERSOMEAREA
TAG.ARENA=1


But it is not help. Similar error.


Attached File(s) Thumbnail(s)
   
(This post was last modified: 03-26-2014 02:55 AM by Russian.)
03-26-2014 02:50 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #10
RE: ERROR: Can't resolve <DEFNAME>
what sphere version are you using? With what script pack?
updated your sphere.ini?

something here doesn't add up

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
(This post was last modified: 03-26-2014 07:06 AM by Ben.)
03-26-2014 07:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)