Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Standard library
Author Message
[Admin] Lord Offline
Administrator
*******

Posts: 192
Joined: Jan 1970
Reputation: 2
Post: #1
Standard library
Available variables and procedures:

$isgmdetected
$lasttarget
$self
$target
$deltatime
$maxmp
$mp
$mppc
$maxhp
$hppc
$cap
$level
$mlevel
$posx
$posy
$posz
$monstersaround
$playersaround
$ringslotid
$beltslotid
$backslotid
$rhandslotid
$lhandslotid
$amuletslotid
$bootsslotid
$legsslotid
$chestslotid
$ringslotcount
$beltslotcount
$backslotcount
$rhandslotcount
$lhandslotcount
$amuletslotcount
$bootsslotcount
$chestslotcount
$manashielded
$drunk
$hasted
$paralyzed
$connected
$battlesign
$poisoned
$burning
$islooting
$enemy
$enemyhp
$friend
$friendhp
$soul
$skull
$standtime

Procedures
say
attack
listas
useoncreature
topitem
settargeting
health
mana
wait
useitem
xlog
playsound
allowwalk
dropitem
gotolabel
useonground
itemcount
moveitems
equipammy
equiphead
equipback
equipchest
equipboots
equipring
equipsring
equiplhand
equiprhand
equipbelt
unequipammy
unequiphead
unequipback
unequipchest
unequipboots
unequipring
unequipsring
unequiplhand
unequiprhand
unequipbelt
turnn
turne
turns
turnw
movee
movene
movese
movew
movenw
movesw
moven
moves
haste
stronghaste
autoheal
manashield
healparalysis
dontlist
uh
sd
uhpc
eatfood
playersabove
playersbelow
playersradius {r}
monstersradius {r}
(This post was last modified: 12-30-2015 10:59 AM by terje321.)
12-04-2015 03:29 AM
Visit this user's website Find all posts by this user Quote this message in a reply
[Admin] Lord Offline
Administrator
*******

Posts: 192
Joined: Jan 1970
Reputation: 2
Post: #2
RE: Standard library
Condition

Example:
Heal me if my hp is lower than 500 by exura
Code:
if $hp<500 {say "Exura"}
< Good
Code:
if [$hp<500] {say "Exura"}
< Bad

Multiple condition
Heal me if my hp is lower than 500 and mana is greater than 25
Code:
if {$hp<500 && $mp>25} { say "Exura" }
< Good
Code:
if [$hp<500 && $mp>25] { say "Exura" }
< Bad
12-08-2015 06:59 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)


BitFactor.Space - The Ad Network, highest CPC ever