Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Respawn conflict problem
Author Message
Ben
Sphere Developer
*****

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

SphereCommunity

Post: #13
RE: Respawn conflict problem
Ok I had a quick look at it and right away I noticed something not right.

ON=@Destroy
REF1=<UID>
FORCHARS 30
FOR x 1 <QVAL (<REF1.TAG0.PONTE2.Q> < <REF1.TAG0.QUANT>) ? <REF1.TAG.QUANT> : <REF1.TAG.PONTE2.Q>>
IF (<UID>==<REF1.TAG0.NPCL.<dLOCAL.X>>)
REMOVE <-------------------------------------NEVER DO INSIDE AN @DESTROY TRIGGER
ENDIF
ENDFOR
ENDFOR
FORCLIENTS 18
UPDATE
ENDFOR
REF2=<TAG.Boss_Respawn>
IF (<REF2>)
REF2.TAG.TOTAL --
ENDIF

I'm 99.99% sure that this is the probem.
You are removing the item just before it's removed... so when sphere deletes the item, it's accessing memory that is no longer allocated to this item.
Maybe it would be solved if you RETURN 1 so that it prevents the default destroy process.

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
(This post was last modified: 02-20-2013 10:15 AM by Ben.)
02-20-2013 10:14 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Respawn conflict problem - Staff_Stanic - 02-19-2013, 12:11 PM
RE: Respawn conflict problem - Mordaunt - 02-19-2013, 12:13 PM
RE: Respawn conflict problem - Mordaunt - 02-19-2013, 12:30 PM
RE: Respawn conflict problem - Mordaunt - 02-19-2013, 12:51 PM
RE: Respawn conflict problem - Ben - 02-19-2013, 01:02 PM
RE: Respawn conflict problem - Mordaunt - 02-19-2013, 01:02 PM
RE: Respawn conflict problem - Mordaunt - 02-19-2013, 01:13 PM
RE: Respawn conflict problem - Ben - 02-20-2013 10:14 AM
RE: Respawn conflict problem - Mordaunt - 02-20-2013, 11:11 AM
RE: Respawn conflict problem - RanXerox - 02-22-2013, 06:48 AM
RE: Respawn conflict problem - Coruja - 02-22-2013, 09:29 AM
RE: Respawn conflict problem - UltimaAku - 02-22-2013, 09:51 AM
RE: Respawn conflict problem - Mordaunt - 02-22-2013, 12:23 PM
RE: Respawn conflict problem - Coruja - 02-22-2013, 04:45 PM
RE: Respawn conflict problem - Shaklaban - 02-23-2013, 03:32 AM
RE: Respawn conflict problem - Mordaunt - 02-23-2013, 03:38 AM
RE: Respawn conflict problem - Extreme - 03-21-2013, 01:06 AM

Forum Jump:


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