1. Get Char Position
Code: Select all
$x = @eval($::char->{pos}{x})
$y = @eval($::char->{pos}{y})
2.a. Check if line is Snipable
Code: Select all
$i = @eval (Misc::checkLineSnipable ({x => <your x position>, y => <your y position>}, {x => <target x>, y => <target y>}))
2.b. Check if line is Walkable(have no obstacles)
Code: Select all
$i = @eval (Misc::checkLineWalkable ({x => <your x position>, y => <your y position>}, {x => <target x>, y => <target y>},0))
3. Check if cell is Walkable (and castable)
Code: Select all
$i = @eval($::field->isWalkable(<any x>, <any y>))
4. Get Level of specific Skill
Code: Select all
$i = @eval($::char->getSkillLevel(new Skill(handle => '<skill handle from skillnametable.txt>')))
$i - Skill Level
5. Text to number "array"
Code: Select all
$i = @eval({"<text1>" => <num1>, "<text2>" => <num2>, ..., "<textN>" => <numN>}->{"<textX>"})
Example
Code: Select all
$i = @eval({"one" => 1, "two" => 2, "three" => 3}->{"two"})
log $i
6. Get Char Stat
Code: Select all
$i = $::char->{<str/agi/dex/int/luc>}
7. Check if quest is active
Code: Select all
$i = @eval ($::questList->{'<quest name>'}->{'active'} == 0)
by Tesla27
REGEXP usefulls
1. Not, inside the regexp
Code: Select all
/(?!<not this>)<but this>/
Code: Select all
console /^(?!You)(.+) finalized the Deal/
Line: "Player Somebody finalized the deal" - triggering!
That's all for now. To be continued...
P.S.: U can post your usefulls lower and i will put them in head of the topic.