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

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #14
RE: Respawn conflict problem
(02-20-2013 10:14 AM)Ben Wrote:  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.
This does not remove the item, removes the npc (forchars above)
Confused
(This post was last modified: 02-20-2013 10:54 AM by Staff_Stanic.)
02-20-2013 10:53 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 - Staff_Stanic - 02-20-2013 10:53 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: 2 Guest(s)