Giter VIP home page Giter VIP logo

Comments (8)

Jhobean avatar Jhobean commented on August 19, 2024

Ok the item are added here:

if ( IsTrigUsed(TRIGGER_NPCSPECIALACTION) )
{
if ( OnTrigger( CTRIG_NPCSpecialAction, this ) == TRIGRET_RET_TRUE )
return;
}
switch ( GetDispID())
{
case CREID_FIRE_ELEM:
if ( !CWorldMap::IsItemTypeNear(GetTopPoint(), IT_FIRE, 0, false) )
{
Action_StartSpecial(CREID_FIRE_ELEM);
return;
}
break;
default:
// TAG.OVERRIDE.SPIDERWEB
CVarDefCont * pValue = GetKey("OVERRIDE.SPIDERWEB",true);
if ( pValue )
{
if ( GetDispID() != CREID_GIANT_SPIDER )
{
Action_StartSpecial(CREID_GIANT_SPIDER);
return;
}
} else {
if ( GetDispID() == CREID_GIANT_SPIDER )
{
Action_StartSpecial(CREID_GIANT_SPIDER);
return;
}

A check for sector sleep should be add on spider and fire elemental

from source-x.

Jhobean avatar Jhobean commented on August 19, 2024

This bug is weird because:
1- In sleeping sector NPC sleep and dont do special action (Just tested and it work)
2- Item with decay flag suppose to always continue timer and decay on sleeping sector (Just tested and it work)

I was about to add some check on the core to prevent
a: prevent npc to spawn item id sector sleep
b: Add can_o_nosleep flag on item.

But both are useless because 1 and 2 work.....

I try to reproduce but i'm not able... I spawn 250 spider on britain and they make spider web everywhere.. I leave for 10 mins, (Sector sleep after 1 min) When I come back there no web.

from source-x.

Tolokio avatar Tolokio commented on August 19, 2024

whats the bug then?

from source-x.

Jhobean avatar Jhobean commented on August 19, 2024

whats the bug then?

Don't know... was not able to reproduce.. Maybe David was using an old build before we added the "decay" don't sleep

from source-x.

Tolokio avatar Tolokio commented on August 19, 2024

nolok confirmed, so there got to b something.

from source-x.

cbnolok avatar cbnolok commented on August 19, 2024

Well it was confirmed back then, i didn't check with latest builds

from source-x.

Soulless-1 avatar Soulless-1 commented on August 19, 2024

it seems to be along the edge of sleeping sectors. from what i recall. i did the same fix as david can_o_nosleep

from source-x.

cbnolok avatar cbnolok commented on August 19, 2024

Is that still happening with a recent build, such latest dev one? This bug sounds weird to me since i recall we fixed a similar (if not identical) issue.

from source-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.