NPC Buff

Results 1 to 8 of 8
  1. #1
    ☺☺Just Ask The Pope☺☺ PopeJohnPaul is offline
    MemberRank
    Jul 2009 Join Date
    Ottawa CALocation
    578Posts

    NPC Buff

    HK FILES



    Hi guys i have an npc buff script that i added to

    Server\9Data\Hero\ScenarioBookShelf\Map\ Called BuffNpc

    i created a buff npc and mobbreed her to test if she spawns, and she did'

    i added the script to field.txt Map/BuffNpc

    the script is as follows

    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 "BuffNPC" 6983 7355 240 1000 "Normal".
        interruptset NPCClickHandle "ExitClick" 1 Exit "BuffNPCBuff".
    	interruptset admin "" 1 "".
    close
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    open [BuffNPCBuff]
        var Clicker 0.
        whoclickme Clicker InterruptArg.
    	abstateset Clicker "StaSafeProtection" 11 3600000.
    	abstateset Clicker "StaDarknessProtection" 6 3600000.
    	abstateset Clicker "StaRestore" 2 3600000.
            abstateset Clicker "StaGTISpeed" 1 15000.
            abstateset Clicker "StaBestHighConSPPotion" 5 3600000.   
    	abstateset Clicker "StaBestHighTHScroll" 5 3600000.
    	abstateset Clicker "StaBestHighTBScroll" 5 3600000.
    	abstateset Clicker "StaBestHighMRScroll" 5 3600000.
    	abstateset Clicker "StaBestHighACScroll" 5 3600000.
    	abstateset Clicker "StaBestHighCriScroll" 5 3600000.
    	abstateset Clicker "StaBestHighMaxHPScroll" 5 3600000.
    	abstateset Clicker "StaBestHighMaxSPScroll" 5 3600000.
    
    
    	
        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
    but i cant seem to get her to spawn is there a new script for HK files
    or does it have to be redone.. a little help on this matter and i will be
    thankful .. thanks in advance .!!
    Last edited by popejohnpaul; 18-12-15 at 11:38 PM.


  2. #2
    Enthusiast Kevx96 is offline
    MemberRank
    Jan 2014 Join Date
    46Posts

    Re: NPC Buff

    You have to add the script name in field.txt into the collum Scriptname.Heres a screenshot .
    http://puu.sh/lYcnP/df90011202.png

  3. #3
    ☺☺Just Ask The Pope☺☺ PopeJohnPaul is offline
    MemberRank
    Jul 2009 Join Date
    Ottawa CALocation
    578Posts

    Re: NPC Buff

    yeah i added that nothing :(

  4. #4
    Anotha One Wicious is offline
    MemberRank
    Jan 2013 Join Date
    StockholmLocation
    839Posts

    Re: NPC Buff

    You have no function called BuffNpcBuff for the click event instead you have 2 BuffNpc. Also, you called BuffNPC at the start instead of BuffNpc. Check the assert files also

  5. #5
    ☺☺Just Ask The Pope☺☺ PopeJohnPaul is offline
    MemberRank
    Jul 2009 Join Date
    Ottawa CALocation
    578Posts

    Re: NPC Buff

    ya it was a fail copy i added the right txt file now .. but still nada :(

  6. #6
    Anotha One Wicious is offline
    MemberRank
    Jan 2013 Join Date
    StockholmLocation
    839Posts

    Re: NPC Buff

    Quote Originally Posted by popejohnpaul View Post
    ya it was a fail copy i added the right txt file now .. but still nada :(
    Alright but you're still calling BuffNPC with capital letters at the very beginning instead of BuffNpc, try changing it to that. Pinescript is case sensetive.

  7. #7
    ☺☺Just Ask The Pope☺☺ PopeJohnPaul is offline
    MemberRank
    Jul 2009 Join Date
    Ottawa CALocation
    578Posts

    Re: NPC Buff

    OK I GOT IT WORKING NOW THANKS TO YOU REKT ^5

    but now i have 2nd issue see if u can spot it

    before


    after


    u guessed it the buffs dont do anything lol...




    edit

    sorry i forgot my server dosnt have skill lvl 12 haha thanks for the help guys problem solved
    Last edited by popejohnpaul; 17-12-15 at 12:47 AM.

  8. #8
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: NPC Buff

    Thread closed as problem is solved :)



Advertisement