[CN - 2012] LUA Scripts

Results 1 to 8 of 8
  1. #1
    Apprentice Pon3 is offline
    MemberRank
    Mar 2015 Join Date
    GermanyLocation
    24Posts

    [CN - 2012] LUA Scripts

    How is it possible to use these scripts? I mean where do you tell the server to use a .lua script for something? For example a Buff NPC or something.


  2. #2
    Apprentice saloum93 is offline
    MemberRank
    Jul 2011 Join Date
    Kuwait City, KuLocation
    11Posts

    Re: [CN - 2012] LUA Scripts

    Hi.

    After wild testing, looks like the HK only reads lua scripts that are for instances, unlike 2015 files that read it via kq, instance and client manipulation.
    So yeah and btw it doesn't read most of 2015's lua scripts, i tried implementing siren and it failed hardcore.

  3. #3
    Account Upgraded | Title Enabled! aqua512 is offline
    MemberRank
    Nov 2012 Join Date
    574Posts

    Re: [CN - 2012] LUA Scripts

    The CN files can use any of the 2015 lua scripts. The issue is the CN files have different function names. So you have to fix the lua scripts to run the proper functions.

    EDIT: The folders for ALL lua scripts to be read is in the folder called LuaScript. AI=mob/npc Instance=instance and so on.

  4. #4
    Account Upgraded | Title Enabled! Evildarkang is offline
    MemberRank
    Sep 2012 Join Date
    Northfield, BirLocation
    417Posts

    Re: [CN - 2012] LUA Scripts

    You can use Pinescript for BuffNPC and you could if you know how to use Lua scripts but i know how to use Pinescript for a buff NPC as shown here:

    Code:
    open [main]
        var InterruptBlock	""
            InterruptArg	""
    		BuffHandle	0
    		Exit			"".
    
         
        interruptclear all.
        interruptset admin "" 1 "".
        call "BuffNPC".
    	infinite
    	
        open
            waitinterrupt InterruptBlock "InterruptArg".    
            call InterruptBlock "BuffNPC".
    		
    	close
    		
    
    close
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    open [IsRunning]
        broadcast Handle "I am running" InterruptArg.
        interruptset admin "" 1 "".
    	call InterruptBlock "BuffNPC".
    close
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    open [BuffNPC]
        npcstand Exit "MobName" 6983 7355 240 1000 "Normal".
        interruptset NPCClickHandle "ExitClick" 1 Exit "BuffNPCBuff".
    	interruptset admin "" 1 "".
    close
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    open [BuffNPCBuff]
        var mclicker 0.
        whoclickme mclicker InterruptArg.
    	abstateset mclicker "StaSafeProtection" 12 3600000.
    	abstateset mclicker "StaDarknessProtection" 6 3600000.
    	abstateset mclicker "StaRestore" 15 11000.
    
        interruptset NPCClickHandle "ExitClick" 1 Exit "BuffNPCBuff".
    	interruptset admin "" 1 "".
    close
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    open [LightsOff]
    
        maplight 0 0 0.
        interruptset admin "" 1 "".
    close
    
    open [LightsOffSlow]
    
    LightTick = 0.
    
    while LightTick < 52
      open
       maplight (255 - LightTick * 5) (255 - LightTick * 5) (255 - LightTick * 5).
       LightTick = LightTick + 1.
      close
    interruptset admin "" 1 "".
    close
    Thats the code for CN-2012 PineScript Map/BuffNPC.ps (oh you could use Map/BuffNPC/BuffNPC (thats lua!))

  5. #5
    Apprentice Pon3 is offline
    MemberRank
    Mar 2015 Join Date
    GermanyLocation
    24Posts

    Re: [CN - 2012] LUA Scripts

    How to use PS is easy, and I know how to make a buff NPC in PS, but I wanted a NPC like Ventus etc. had. e.g. for 5 Gold you get a specific buff etc.

  6. #6
    Apprentice saloum93 is offline
    MemberRank
    Jul 2011 Join Date
    Kuwait City, KuLocation
    11Posts

    Re: [CN - 2012] LUA Scripts

    Not possibru, although our dev did something quite similar to it using the filter

  7. #7
    Account Upgraded | Title Enabled! aqua512 is offline
    MemberRank
    Nov 2012 Join Date
    574Posts

    Re: [CN - 2012] LUA Scripts

    http://forum.ragezone.com/f593/help-cn-files-1092128/ <---------All the Lua commands for the HK files are here.

  8. #8
    aka saze xteslaz is offline
    MemberRank
    Jul 2014 Join Date
    222Posts

    Re: [CN - 2012] LUA Scripts

    Quote Originally Posted by saloum93 View Post
    Not possibru, although our dev did something quite similar to it using the filter
    Exactly. With filter you can do alot of shit. Back on Ascension we had a CS store that converted fame to CS Points (in account table). Once you get that thing to work, the things you can do are pretty nice.

    Verstuurd vanaf mijn SM-G900F met Tapatalk



Advertisement