Lua script

10/16/2014 18:20 gavsta#1
Okay so... I was wondering if it's a possibility to read skill/skill level from lua script of a creature....


for example

if find_skill(creature, skill id) =>10 then Obviously not at all the correct way or even how to do anything creature related in lua but... you catch the drift.

Any help would go highly appreciated.

(not normally one to ask for help... so):mofo:
10/16/2014 20:49 undergroundtaffy#2
You must've entirely missed Mongrels huuuuge post about all commands and their usages.

[Only registered and activated users can see links. Click Here To Register...]
10/16/2014 21:40 c1ph3r#3
@undergroundtaffy i think he read it but there is no information about that. as far as i know this isn't working. but i will check it later.
10/16/2014 22:23 gavsta#4
Quote:
Originally Posted by undergroundtaffy View Post
You must've entirely missed Mongrels huuuuge post about all commands and their usages.

[Only registered and activated users can see links. Click Here To Register...]


i did check that and tried...
Code:
get_base_skill_level(1002,get_creature_handle(0)get_creature_handle(0)) >10 then
I tried this (or something along these lines, but didn't have much luck )
10/16/2014 23:45 TheOnlyOneRaskim#5
Quote:
Originally Posted by gavsta View Post
i did check that and tried...
Code:
get_base_skill_level(1002,get_creature_handle(0)get_creature_handle(0)) >10 then
I tried this (or something along these lines, but didn't have much luck )
The Syntax is the still in and the Charakter Name. You could try it with the creature Name, but i think the Command is only working with characters.
10/17/2014 10:30 mongreldogg#6
if you did skill learn for creature via script, you may get its skill ID and level only if you have stored it in server memory (GlobalVariables is the best way to store data both in memory and in a database).
but only if your skill learning function does so - stores that data.

i helped one guy with that once - he made random skill learning via npc menu and storing data about skill ID and level for a creature using GlobalVariables

think there is no way to get it directly from a memory.

you may also try to change LUA core to support dynamic libraries and then use mssql libraries for LUA. but again, its not a server memory, database could be updated way after updating creature's skills data in GS memory
10/21/2014 01:20 c1ph3r#7
Without an external coded tool reading creature skill levels won't work. You can modify some smps and observing the behaviour by an external tool. This tool has to check you telecaster all the time and has to interact with the smps. If you combine lua + smp + external tool you are able to check summon skill levels...

This is how the random skill feature is working on nemesis...(random skills without relog and these things) The biggest thing you will need doing this was released by raskim :D who leached the learn_creature_skill syntax :P

Fuck you for releasing that again raskim :P
10/21/2014 19:29 mongreldogg#8
Quote:
Originally Posted by c1ph3r View Post
Without an external coded tool reading creature skill levels won't work. You can modify some smps and observing the behaviour by an external tool. This tool has to check you telecaster all the time and has to interact with the smps. If you combine lua + smp + external tool you are able to check summon skill levels...

This is how the random skill feature is working on nemesis...(random skills without relog and these things) The biggest thing you will need doing this was released by raskim :D who leached the learn_creature_skill syntax :P

Fuck you for releasing that again raskim :P
telnet to gs by an external tool? huh!
how could i miss that feature :D
think i should leech that idea :D no disrespect
10/22/2014 16:48 c1ph3r#9
telnet or sendkeys both will work