Dedication to Action and fun.
 
HomeCalendarFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Despawn script required

View previous topic View next topic Go down 
AuthorMessage
lolthatguy

avatar

Posts : 243
Join date : 2013-05-05
Age : 23
Location : larry town

PostSubject: Despawn script required   Mon Jun 29, 2015 2:32 am

ayy, If either highv or someone else who has it can post the de-spawn script that badlands uses for your average summon that'd be ace.
Back to top Go down
View user profile
Highv Priest
Admin
avatar

Posts : 561
Join date : 2012-09-13

PostSubject: Re: Despawn script required   Mon Jun 29, 2015 2:47 am

int IsDominated(object oEncounter)
{
effect eDom = GetFirstEffect(oEncounter);
while(GetIsEffectValid(eDom))
{
if(GetEffectType(eDom) == EFFECT_TYPE_DOMINATED)
{
return TRUE;
}
eDom = GetNextEffect(oEncounter);
}
return FALSE;
}

void DeleteEncounter(object oEncounter)
{
if(!GetIsInCombat(oEncounter))
{
if(!IsDominated(oEncounter))
{
DestroyObject(oEncounter);
}
}
DelayCommand(30.0, DeleteEncounter(oEncounter));
}

void main()
{
object oSelf = OBJECT_SELF;
if (GetIsEncounterCreature(oSelf))
{
if(!GetLocalInt(oSelf, "PersEncounter"))
{
DelayCommand(30.0, DeleteEncounter(oSelf));
}
}
}
Back to top Go down
View user profile http://badlandsaction.forumotion.com
lolthatguy

avatar

Posts : 243
Join date : 2013-05-05
Age : 23
Location : larry town

PostSubject: Re: Despawn script required   Mon Jun 29, 2015 2:50 am

thanks mane
Back to top Go down
View user profile
lolthatguy

avatar

Posts : 243
Join date : 2013-05-05
Age : 23
Location : larry town

PostSubject: Re: Despawn script required   Mon Jun 29, 2015 2:58 am

also another question, do you get no exp for killing things that are rated as impossible or above on badlands? I can't remember if this is the case, I know on sinfar it is unfortunately.
Back to top Go down
View user profile
Highv Priest
Admin
avatar

Posts : 561
Join date : 2012-09-13

PostSubject: Re: Despawn script required   Mon Jun 29, 2015 1:06 pm

No you do
Back to top Go down
View user profile http://badlandsaction.forumotion.com
Sponsored content




PostSubject: Re: Despawn script required   

Back to top Go down
 
Despawn script required
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Chess Script
» Autohotkey script for melee barbarian
» Awesome (FREE) gun script!
» Gun Movement Script? Tutorial #2
» Walking Animation Script(Help)

Permissions in this forum:You cannot reply to topics in this forum
Badlands Action :: Talking about nwn :: Wish List-
Jump to: