Register for your free account! | Forgot your password?

You last visited: Today at 21:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Lua script

Discussion on Lua script within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
gavsta's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,141
Received Thanks: 634
Question Lua script

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)
gavsta is offline  
Old 10/16/2014, 20:49   #2
 
elite*gold: 0
Join Date: Jul 2014
Posts: 31
Received Thanks: 26
You must've entirely missed Mongrels huuuuge post about all commands and their usages.

undergroundtaffy is offline  
Old 10/16/2014, 21:40   #3
 
c1ph3r's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,606
Received Thanks: 1,210
@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.
c1ph3r is offline  
Thanks
1 User
Old 10/16/2014, 22:23   #4
 
gavsta's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 1,141
Received Thanks: 634
Quote:
Originally Posted by undergroundtaffy View Post
You must've entirely missed Mongrels huuuuge post about all commands and their usages.



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 )
gavsta is offline  
Old 10/16/2014, 23:45   #5
 
TheOnlyOneRaskim's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 978
Received Thanks: 1,011
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.
TheOnlyOneRaskim is offline  
Old 10/17/2014, 10:30   #6
 
mongreldogg's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 634
Received Thanks: 297
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
mongreldogg is offline  
Old 10/21/2014, 01:20   #7
 
c1ph3r's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,606
Received Thanks: 1,210
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 who leached the learn_creature_skill syntax :P

**** you for releasing that again raskim :P
c1ph3r is offline  
Thanks
1 User
Old 10/21/2014, 19:29   #8
 
mongreldogg's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 634
Received Thanks: 297
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 who leached the learn_creature_skill syntax :P

**** you for releasing that again raskim :P
telnet to gs by an external tool? huh!
how could i miss that feature
think i should leech that idea no disrespect
mongreldogg is offline  
Old 10/22/2014, 16:48   #9
 
c1ph3r's Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,606
Received Thanks: 1,210
telnet or sendkeys both will work
c1ph3r is offline  
Reply


Similar Threads Similar Threads
[Biete] Scripteen Ajax Photo Rating Script V2 License (Hot or Not Script) [S] Paypal
01/31/2013 - Trading - 0 Replies
Hey, und zwar brauche ich das Script nicht mehr und stelle meine License deshalb hier zum Verkauf. Link zum Script: Hot or Not Script | Photo Rating Script | Scripteen PHP Scripts Macht mir Angebote suche Paypal. Screenshots: http://scripteen.com/uploads/156-Screen%20Shot%20 2012-05-19%20at%2010.32.56%20AM.png http://scripteen.com/uploads/381-Screen%20Shot%20 2012-05-19%20at%2010.33.07%20AM.png



All times are GMT +2. The time now is 21:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.