The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Rare" Spawner Event
Author Message
gergecoelho
Apprentice
*

Posts: 31
Likes Given: 7
Likes Received: 3 in 3 posts
Joined: Jul 2015
Reputation: 0



Post: #3
RE: NPC Events not being applied
Oh, then it's even better than I thought. Though the script isn't working for some OTHER reason.

See if you can make any sense of this (it's the event on EventsPet):

Code:
[TYPEDEF e_NPC_Triumphus] //NPC Spawn
ON=@Create
ALLSKILLS = (100 + (<TAG.LEVEL> * 80))
IF (<TAG.NPCCLASS> == 1) //Brute
    STR = (18 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (3 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+20
    HITS = MAXHITS
    EVENTS +e_brute
ENDIF
IF (<TAG.NPCCLASS> == 2) //Soldier
    STR = (13 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (8 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (3 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+15
    HITS = MAXHITS
    EVENTS +e_soldier
ENDIF
IF (<TAG.NPCCLASS> == 3) //Artillery
    STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (3 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+10
    HITS = MAXHITS
    EVENTS +e_artillery
ENDIF
IF (<TAG.NPCCLASS> == 4) //Skirmisher
    STR = (8 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+15
    HITS = MAXHITS
    EVENTS +e_skirmisher
ENDIF
IF (<TAG.NPCCLASS> == 5) //Lurker
    STR = (13 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (23 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (-3 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+10
    HITS = MAXHITS
    EVENTS +e_lurker
ENDIF
IF (<TAG.NPCCLASS> == 6) //Controller
    STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (-3 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (23 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+5
    HITS = MAXHITS
    EVENTS +e_controller
ENDIF
IF (<TAG.NPCCLASS> == 7) //Support
    STR = (3 + (<TAG.LEVEL> * 8) + {1 3})
    DEX = (-3 + (<TAG.LEVEL> * 8) + {1 3})
    INT = (23 + (<TAG.LEVEL> * 8) + {1 3})
    MAXHITS = STR+5
    HITS = MAXHITS
    EVENTS +e_support
ENDIF

VAR.RAND = <EVAL {1 500}> //Random chance for rare spawn
IF (<VAR.RAND> == 1)
    NAME = "Master "+<NAME>
    STR += (<STR> * 2,5)
    STR += (<DEX> * 2,5)
    STR += (<INT> * 2,5)
    Allskills = 100.0
    MAXHITS += 250
    HITS = MAXHITS
    COLOR = colors_all
    OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 2) && (<VAR.RAND> <= 6)
    NAME = "Paragon "+<NAME>
    STR += (<STR> * 1,5)
    STR += (<DEX> * 1,5)
    STR += (<INT> * 1,5)
    Allskills = (<I.Anatomy> + (<I.Anatomy> * 1,5))
    MAXHITS += 150
    HITS = MAXHITS
    COLOR = colors_all
    OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 7) && (<VAR.RAND> <= 16)
    NAME = "Champion "+<NAME>
    STR += (<STR> * 1)
    STR += (<DEX> * 1)
    STR += (<INT> * 1)
    Allskills = (<I.Anatomy> + (<I.Anatomy> * 1))
    MAXHITS += 100
    HITS = MAXHITS
    COLOR = colors_all
    OSKIN = COLOR
ENDIF
IF (<VAR.RAND> >= 17) && (<VAR.RAND> <= 36)
    NAME = "Greater "+<NAME>
    STR += (<STR> * 0,5)
    STR += (<DEX> * 0,5)
    STR += (<INT> * 0,5)
    Allskills = (<I.Anatomy> + (<I.Anatomy> * 0,5))
    MAXHITS += 50
    HITS = MAXHITS
    COLOR = colors_all
    OSKIN = COLOR
ENDIF

I put the TAG.LEVEL and TAG.NPCCLASS inside the monster chardef. Should I move them to the monster's @Create, then?
04-29-2017 12:28 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
"Rare" Spawner Event - gergecoelho - 04-29-2017, 02:06 AM
RE: NPC Events not being applied - gergecoelho - 04-29-2017 12:28 PM
RE: NPC Events not being applied - Coruja - 05-01-2017, 04:38 PM
RE: "Rare" Spawner Event - gergecoelho - 05-05-2017, 10:17 AM
RE: "Rare" Spawner Event - darksun84 - 05-05-2017, 09:26 PM
RE: "Rare" Spawner Event - gergecoelho - 05-06-2017, 09:10 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)