Creation/Dev/Script/Client/TServerNPC: Difference between revisions

From Graal Bible
mNo edit summary
 
No edit summary
Line 1: Line 1:
<pre>
Inherits [[Creation/Dev/Script/Client/TServerPlayer|TServerPlayer]].
          TServerNPC (TServerPlayer):
 
            actionplayer - integer (read only)
=Variables=
            hearts - float
{| border="1" cellpadding="2" width="100%"
            height - float (read only)
| '''Name'''
            horseimg - string
| '''Type'''
            hp - float
| '''Description'''
            hurtdx - float
|-
            hurtdy - float
| actionplayer
            image - string
| integer (read only)
            layer - integer
|
            peltwithblackstone - boolean (read only)
|-
            peltwithbush - boolean (read only)
| hearts
            peltwithnpc - boolean (read only)
| float
            peltwithsign - boolean (read only)
|
            peltwithstone - boolean (read only)
|-
            peltwithvase - boolean (read only)
| height
            save - object (read only)
| float (read only)
            shieldpower - integer
|
            sprite - integer
|-
            swordpower - integer
| horseimg
            visible - boolean
| string
            width - float (read only)
|
            x - float
|-
            y - float
| hp
            blockagain()
| float
            blockagainlocal()
|
            canbecarried()
|-
            canbepulled()
| hurtdx
            canbepushed()
| float
            cannotbecarried()
|
            cannotbepulled()
|-
            cannotbepushed()
| hurtdy
            carryobject(str)
| float
            changeimgcolors(int, float, float, float, float)
|
            changeimgmode(int, int)
|-
            changeimgpart(int, int, int, int, int)
| image
            changeimgvis(int, int)
| string
            changeimgzoom(int, float)
|
            destroy()
|-
            dontblock()
| layer
            dontblocklocal()
| integer
            drawaslight()
|
            drawoverplayer()
|-
            drawunderplayer()
| peltwithblackstone
            findimg(int) - returns object
| boolean (read only)
            hide()
|
            hideimg(int)
|-
            hideimgs(int, int)
| peltwithbush
            hidelocal()
| boolean (read only)
            hurt(int)
|
            lay(str)
|-
            message(str)
| peltwithnpc
            move(float, float, float, int)
| boolean (read only)
            setbow(str)
|
            setcharani(str, str)
|-
            setchargender(str)
| peltwithsign
            setcoloreffect(float, float, float, float)
| boolean (read only)
            seteffectmode(int)
|
            setimg(str)
|-
            setimgpart(str, int, int, int, int)
| peltwithstone
            setshape(int, int, int)
| boolean (read only)
            setshape2(int, int, obj)
|
            setzoomeffect(float)
|-
            shootarrow(int)
| peltwithvase
            shootball()
| boolean (read only)
            shootfireball(int)
|
            shootfireblast(int)
|-
            shootnuke(int)
| save
            show()
| object (read only)
            showani(int, float, float, int, str) - returns object
|
            showani2(int, float, float, float, int, str) - returns object
|-
            showcharacter()
| shieldpower
            showimg(int, str, float, float) - returns object
| integer
            showimg2(int, str, float, float, float) - returns object
|
            showlocal()
|-
            showpoly(int, obj) - returns object
| sprite
            showpoly2(int, obj) - returns object
| integer
            showtext(int, float, float, str, str, str) - returns object
|
            showtext2(int, float, float, float, str, str, str) - returns object
|-
            take(str)
| swordpower
            take2(int)
| integer
            takehorse(int)
|
            throwcarry()
|-
            timereverywhere()
| visible
            toweapons(str)
| boolean
</pre>
|
|-
| width
| float (read only)
|
|-
| x
| float
|
|-
| y
| float
|
|}
 
=Functions=
{| border="1" cellpadding="2" width="100%"
| '''Name'''
| '''Return Type'''
| '''Description'''
|-
| blockagain()
|
|
|-
| blockagainlocal()
|
|
|-
| canbecarried()
|
|
|-
| canbepulled()
|
|
|-
| canbepushed()
|
|
|-
| cannotbecarried()
|
|
|-
| cannotbepulled()
|
|
|-
| cannotbepushed()
|
|
|-
| carryobject(str)
|
|
|-
| changeimgcolors(int, float, float, float, float)
|
|
|-
| changeimgmode(int, int)
|
|
|-
| changeimgpart(int, int, int, int, int)
|
|
|-
| changeimgvis(int, int)
|
|
|-
| changeimgzoom(int, float)
|
|
|-
| destroy()
|
|
|-
| dontblock()
|
|
|-
| dontblocklocal()
|
|
|-
| drawaslight()
|
|
|-
| drawoverplayer()
|
|
|-
| drawunderplayer()
|
|
|-
| findimg(int)
| object
|
|-
| hide()
|
|
|-
| hideimg(int)
|
|
|-
| hideimgs(int, int)
|
|
|-
| hidelocal()
|
|
|-
| hurt(int)
|
|
|-
| lay(str)
|
|
|-
| message(str)
|
|
|-
| move(float, float, float, int)
|
|
|-
| setbow(str)
|
|
|-
| setcharani(str, str)
|
|
|-
| setchargender(str)
|
|
|-
| setcoloreffect(float, float, float, float)
|
|
|-
| seteffectmode(int)
|
|
|-
| setimg(str)
|
|
|-
| setimgpart(str, int, int, int, int)
|
|
|-
| setshape(int, int, int)
|
|
|-
| setshape2(int, int, obj)
|
| Supported tile types:
  {| border="1" cellpadding="2" width="100%"
  | '''Value'''
  | '''Description'''
  |-
  | 0
  | Nonblocking
  |-
  | 2
  | Hurting underground
  |-
  | 3
  | Chair
  |-
  | 4
  | Bed upper side
  |-
  | 5
  | Bed lower side
  |-
  | 6
  | Swamp
  |-
  | 7
  | Lava swamp
  |-
  | 8
  | Near water
  |-
  | 9
  | Near lava
  |-
  | 11
  | Water
  |-
  | 12
  | Lava
  |-
  | 20
  | Throw-through (fences)
  |-
  | 21
  | Jumping stone
  |-
  | 22
  | Blocking tile
  |}
|-
| setzoomeffect(float)
|
|
|-
| shootarrow(int)
|
|
|-
| shootball()
|
|
|-
| shootfireball(int)
|
|
|-
| shootfireblast(int)
|
|
|-
| shootnuke(int)
|
|
|-
| show()
|
|
|-
| showani(int, float, float, int, str)
| object
|
|-
| showani2(int, float, float, float, int, str)
| object
|
|-
| showcharacter()
|
|
|-
| showimg(int, str, float, float)
| object
|
|-
| showimg2(int, str, float, float, float)
| object
|
|-
| showlocal()
|
|
|-
| showpoly(int, obj)
| object
|
|-
| showpoly2(int, obj)
| object
|
|-
| showtext(int, float, float, str, str, str)
| object
|
|-
| showtext2(int, float, float, float, str, str, str)
| object
|
|-
| take(str)
|
|
|-
| take2(int)
|
|
|-
| takehorse(int)
|
|
|-
| throwcarry()
|
|
|-
| timereverywhere()
|
|
|-
| toweapons(str)
|
|
|}

Revision as of 17:14, 26 February 2006

Inherits TServerPlayer.

Variables

Name Type Description
actionplayer integer (read only)
hearts float
height float (read only)
horseimg string
hp float
hurtdx float
hurtdy float
image string
layer integer
peltwithblackstone boolean (read only)
peltwithbush boolean (read only)
peltwithnpc boolean (read only)
peltwithsign boolean (read only)
peltwithstone boolean (read only)
peltwithvase boolean (read only)
save object (read only)
shieldpower integer
sprite integer
swordpower integer
visible boolean
width float (read only)
x float
y float

Functions

Name Return Type Description
blockagain()
blockagainlocal()
canbecarried()
canbepulled()
canbepushed()
cannotbecarried()
cannotbepulled()
cannotbepushed()
carryobject(str)
changeimgcolors(int, float, float, float, float)
changeimgmode(int, int)
changeimgpart(int, int, int, int, int)
changeimgvis(int, int)
changeimgzoom(int, float)
destroy()
dontblock()
dontblocklocal()
drawaslight()
drawoverplayer()
drawunderplayer()
findimg(int) object
hide()
hideimg(int)
hideimgs(int, int)
hidelocal()
hurt(int)
lay(str)
message(str)
move(float, float, float, int)
setbow(str)
setcharani(str, str)
setchargender(str)
setcoloreffect(float, float, float, float)
seteffectmode(int)
setimg(str)
setimgpart(str, int, int, int, int)
setshape(int, int, int)
setshape2(int, int, obj) Supported tile types:
Value Description
0 Nonblocking
2 Hurting underground
3 Chair
4 Bed upper side
5 Bed lower side
6 Swamp
7 Lava swamp
8 Near water
9 Near lava
11 Water
12 Lava
20 Throw-through (fences)
21 Jumping stone
22 Blocking tile
setzoomeffect(float)
shootarrow(int)
shootball()
shootfireball(int)
shootfireblast(int)
shootnuke(int)
show()
showani(int, float, float, int, str) object
showani2(int, float, float, float, int, str) object
showcharacter()
showimg(int, str, float, float) object
showimg2(int, str, float, float, float) object
showlocal()
showpoly(int, obj) object
showpoly2(int, obj) object
showtext(int, float, float, str, str, str) object
showtext2(int, float, float, float, str, str, str) object
take(str)
take2(int)
takehorse(int)
throwcarry()
timereverywhere()
toweapons(str)