AIP conditions

Tools for osRose and osiRose will be placed in here, as well as Rose file formats.

Please PM rl2171 or lmame to get them added to the list.

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Re: AIP conditions

Postby PurpleYouko on Wed May 29, 2019 9:20 pm

AIP_COND_031

  1. // "Do I have an Owner?"
  2. // Not quite the same as "Am I an orphan" although the difference is kind of pointless
  3. AIP_COND_031
  4.     if ( !entity->IsSummon ( ) ) //Not a summon? automatic fail
  5.         return AI_FAILURE
  6.     CMap* map = GServer->MapList.Index [ entity->Position->Map ]    //get the local map
  7.     CCharacter* caller = map->GetCharInMap ( entity->owner )        //get my owner
  8.     if ( caller == NULL )                                           //No valid owner. FAIL
  9.         return AI_FAILURE
  10.     return AI_SUCCESS                                               //Yup I have an owner


Kind of pointless check to see if I am a summon WITH an owner rather than a summon WITHOUT an owner.
Why couldn't we have decided this elsewhere and saved an entire function?
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Re: AIP conditions

Postby PurpleYouko on Wed May 29, 2019 9:22 pm

Beyond AIP_COND_031

Well sadly I don't have the source code for anything past 31. It's quite possible that there may be a few functions that exist in some of the later ROSE clients and servers but I don't have them so this is where it all comes to an end.

Please feel free to ask anything you like about the conditions that I have posted here.
Need to lookup information on NARose items, skills, quests?
Now featuring a newly completed skill tree for all classes
Formatting fixed for different resolutions
Image

"A Gazelle is nothing but a giraffe plotted logarithmicaly"
User avatar
PurpleYouko
Rose Guru
Rose Guru
 
Posts: 4733
Joined: Fri Aug 10, 2007 2:05 pm

Previous

Return to Tools and File Format

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests

cron