Creation/Dev/Script Functions: NPC Server: Difference between revisions

From Graal Bible
No edit summary
m (Script Functions: NPC Server moved to Creation/Dev/Script Functions: NPC Server)
(No difference)

Revision as of 17:23, 10 January 2006

Script functions:

Global:
  allplayerscount - integer (read only)
  canspin - boolean (read only)
  carriesblackstone - boolean (read only)
  carriesbush - boolean (read only)
  carriesnpc - boolean (read only)
  carriessign - boolean (read only)
  carriesstone - boolean (read only)
  carriesvase - boolean (read only)
  graalversion - float (read only)
  gravity - float
  nwday - integer (read only)
  nwhour - integer (read only)
  nwmin - integer (read only)
  nwmonth - integer (read only)
  nwtime - integer (read only)
  nwweek - integer (read only)
  nwweekday - integer (read only)
  nwyear - integer (read only)
  timevar - integer (read only)
  timevar2 - float (read only)
  addguildmember(str, str, str)
  addweapon(str)
  aindexof(float, obj) - returns integer
  attachplayertoobj(int, int)
  bodyexists(str) - returns boolean
  callnpc(int, params...)
  callweapon(int, params...)
  contains(str, str) - returns boolean
  copylevel(str, str)
  copystrings(str, str)
  deletelevel(str)
  detachplayer()
  echo(str)
  fileexists(str) - returns boolean
  findareanpcs(float, float, float, float) - returns object
  findnearestplayer(float, float) - returns object
  findnearestplayers(float, float) - returns object
  findnpc(str) - returns object
  findplayer(str) - returns object
  findplayerbyid(int) - returns object
  findweapon(str) - returns object
  freezeplayer2()
  getareanpcs(float, float, float, float) - returns object
  getascii(str)
  getextension(str) - returns string
  getimgheight(str) - returns integer
  getimgwidth(str) - returns integer
  getmapx(str) - returns integer
  getmapy(str) - returns integer
  getnearestplayer(float, float) - returns integer
  getnearestplayers(float, float) - returns object
  getnpcindex(str) - returns integer
  getplayerindex(str) - returns integer
  getstringkeys(str) - returns object
  hasright(str, str) - returns boolean
  hasweapon(str) - returns boolean
  headexists(str) - returns boolean
  hitobjects(float, float, float)
  levelexists(str) - returns boolean
  makescreenshot(str)
  md5(str) - returns string
  onwall(float, float) - returns boolean
  onwall2(float, float, float, float) - returns boolean
  onwater(float, float) - returns boolean
  onwater2(float, float, float, float) - returns boolean
  passwordmatches(str, str) - returns boolean
  randomstring(str) - returns string
  removeguild(str)
  removeguildmember(str, str)
  removeweapon(str)
  saveinfo(str, str)
  savelog(str)
  savelog2(str, str)
  say(int)
  say2(str)
  sendpm(str)
  sendrpgmessage(str)
  sendtonc(str)
  sendtorc(str)
  setani(str, str)
  setbeltcolor(str)
  setcoatcolor(str)
  setgender(str)
  sethead(str)
  setlevel2(str, float, float)
  setpm(str)
  setshield(str, int)
  setshoecolor(str)
  setshootparams(str)
  setskincolor(str)
  setsleevecolor(str)
  setsword(str, int)
  shieldexists(str) - returns boolean
  swordexists(str) - returns boolean
  testnpc(float, float) - returns integer
  testplayer(float, float) - returns integer
  triggeraction(float, float, str, str)
  unfreezeplayer()

TGraalVar:
  initialized - boolean (read only)
  joinedclasses - object (read only)
  name - string (read only)
  scriptlogmissingfunctions - boolean
  timeout - float
  addarray(obj)
  cancelevents(str)
  catchevent(str, str, str)
  copyfrom(obj)
  getdynamicvarnames() - returns object
  geteditvarnames() - returns object
  getfunctions() - returns object
  getstaticvarnames() - returns object
  getvarnames() - returns object
  ignoreevent(str, str)
  ignoreevents(str)
  insertarray(int, obj)
  isinclass(str) - returns float
  join(str)
  leave(str)
  loadfolder(str, int)
  loadlines(str)
  loadstring(str)
  loadvars(str)
  objecttype() - returns string
  savelines(str, int)
  savestring(str, int)
  savevars(str, int)
  scheduleevent(float, str, params...) - returns object
  settimer(float)
  sortascending()
  timershow()
  trigger(str, params...)

  TGaniObject (TGraalVar):
    ani - string (read only)
    attr - object (read only)
    colors - object (read only)

    TServerNPC (TGaniObject):

      TServerSideNPC (TServerNPC):
        ap - integer
        arrows - integer
        body - string
        bodyimg - string
        bombs - integer
        chat - string
        darts - integer
        dir - integer
        glovepower - integer
        gralats - integer
        head - string
        headimg - string
        hearts - float
        height - float (read only)
        horseimg - string
        hurtdx - float
        hurtdy - float
        hurtpower - float (read only)
        id - integer (read only)
        image - string
        level - object (read only)
        name - string (read only)
        nick - string
        npcsindex - integer (read only)
        rupees - integer
        save - object (read only)
        shield - string
        shieldimg - string
        shieldpower - integer
        sprite - integer
        sword - string
        swordimg - string
        swordpower - integer
        visible - boolean
        width - float (read only)
        x - float
        y - float
        z - float
        blockagain()
        canbecarried()
        canbepulled()
        canbepushed()
        cannotbecarried()
        cannotbepulled()
        cannotbepushed()
        cannotwarp()
        canwarp()
        canwarp2()
        changeimgcolors(int, float, float, float, float)
        changeimgpart(int, int, int, int, int)
        changeimgvis(int, int)
        changeimgzoom(int, float)
        destroy()
        dontblock()
        drawoverplayer()
        drawunderplayer()
        findimg(int) - returns object
        hide()
        hideimg(int)
        hideimgs(int, int)
        message(str)
        move(float, float, float, int)
        noplayeronwall()
        playeronwall()
        scriptdone()
        setcharani(str, str)
        setchargender(str)
        setimg(str)
        setimgpart(str, int, int, int, int)
        setshape(int, int, int)
        setshape2(int, int, obj)
        show()
        showcharacter()
        showimg(int, str, float, float)
        showimg2(int, str, float, float, float)
        toweapons(str)
        warpto(str, float, float)

    TServerPlayer (TGaniObject):
      account - string (read only)
      ap - integer
      arrows - integer
      attached - boolean (read only)
      attachid - integer (read only)
      attachtype - integer (read only)
      body - string
      bodyimg - string
      bombs - integer
      canspin - boolean (read only)
      carriesblackstone - boolean (read only)
      carriesbush - boolean (read only)
      carriesnpc - boolean (read only)
      carriessign - boolean (read only)
      carriesstone - boolean (read only)
      carriesvase - boolean (read only)
      chat - string
      darts - integer
      deaths - integer
      dir - integer
      fullhearts - integer
      glovepower - integer
      graalversion - float (read only)
      gralats - integer
      guild - string
      head - string
      headimg - string
      headset - integer
      hearts - float
      horseimg - string
      hp - float
      id - integer (read only)
      isfemale - boolean
      ismale - boolean
      kills - integer
      lastdead - integer (read only)
      level - object (read only)
      logintime - integer (read only)
      maxhp - integer
      movementlimit - float
      mp - integer
      nick - string
      onlinetime - integer (read only)
      pause - boolean (read only)
      paused - boolean (read only)
      rating - float
      ratingd - float
      rupees - integer
      shield - string
      shieldimg - string
      shieldpower - integer
      sprite - integer
      sword - string
      swordimg - string
      swordpower - integer
      version - float (read only)
      x - float
      y - float
      z - float
      addweapon(str)
      attachplayertoobj(int, int)
      callweapon(int, params...)
      detachplayer()
      disableweapons()
      enableweapons()
      freezeplayer2()
      hasright(str, str) - returns boolean
      hasweapon(str) - returns boolean
      makescreenshot(str)
      removeweapon(str)
      say(int)
      say2(str)
      sendpm(str)
      sendrpgmessage(str)
      setani(str, str)
      setbeltcolor(str)
      setcoatcolor(str)
      setgender(str)
      sethead(str)
      setlevel2(str, float, float)
      setshield(str, int)
      setshoecolor(str)
      setskincolor(str)
      setsleevecolor(str)
      setsword(str, int)
      unfreezeplayer()

  TProjectile (TGraalVar):
    angle - float (read only)
    fromplayer - object
    horiz - boolean (read only)
    params - string
    speed - float (read only)
    x - float (read only)
    y - float (read only)
    z - float (read only)
    zspeed - float (read only)

  TServerLevel (TGraalVar):
    board - object (read only)
    isnopkzone - boolean (read only)
    issparringzone - boolean (read only)
    dontswapoutlevel()
    getz(float, float) - returns float
    noplayerkilling()
    putbomb(int, float, float)
    putexplosion(int, float, float)
    putexplosion2(int, int, float, float)
    putnpc2(float, float, str) - returns object
    shoot(float, float, float, float, float, float, str, str)
    updateboard(int, int, int, int)
    updateboard2(int, int, int, int)

  TServerSign (TGraalVar):
    text - string
    x - integer
    y - integer