[Lua] So I herd u liek Mudkipz... menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] So I herd u liek Mudkipz...

    ...Then you're in for a treat.

    luahyparc private pastebin - collaborative debugging tool
    Requires Arcscripts r1028+

    Mudkip PvP AI Companion
    This script is a scripted item that summons a Mudkip NPC that follows the owner around like a guardian. This Mudkip is no ordinary mudkip. He takes on the role of an arena partner, imitating a PvP player. When in combat, he is a devastating force, when out of combat, he is a funny, fun-loving sidekick. It's AI is based on a prioritised "state" system; where the mudkip picks his state based on the environment. He has 5 state to choose from: non combat, regular combat, owner in danger, self in trouble, and self critical. He does different things in each state.

    Non combat: Just follows you around and has 10 unique and funny chat messages that trigger roughly every 10 min.

    Combat: This is his usual combat mode. He attacks using Frost shock, Frostbolt and Waterbolt depending on whether he has enough mana to cast them and if they are on cooldown. There is a rare chance that he may do something special instead of those regular spells .

    Owner in danger: He performs a combo involving charging the enemy, sling mud (reducing hit chance) the enemy and healing the player.

    Self in trouble: This is when the Mudkip is hindered in some way, he attempts to get out of his trouble via Trinket, Escape Artist or Ice block.

    Self critical: The kip will activate his speed booster, run away from enemies and heal himself; he will also try to Ice block to protect himself if he's really in trouble.

    Ending notes
    That was just a summary of the script, what lies beneath is a hand-made spell casting and cooldown system, as well as extensive table use. Please ask any questions about the script here if I comments don't explain enough. I hope this can be fun as well as a learning opportunity. It's not 100% tested, but I tested the important things such as state transition and critical shared functions .

    luahyparc private pastebin - collaborative debugging tool

    Recommended SQL
    ITEM


    NPC
    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `killcredit1`, `killcredit2`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `leader`) 
    values ('133760', "Frenzied Mudkip", "", '', '0', '1', '0', '0', '0', '0', '25157', '0', '0', '0', '1', '1', '0');
    
    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`, `summonguard`) 
    values ('133760', '80', '80', '7', '23400', '23400', '43200', '1', '0', '1500', '0', '100', '200', '0', '0', '0', '0', '0', '2555', '0', '0', '0', '0', '0', '0', '0', '0', "0", '0', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0', '0');
    Screenshots



    [Lua] So I herd u liek Mudkipz...
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Nice share, Hypersniper's work is always very good.

  3. #3
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    True! !!


  4. #4
    Found's Avatar Banned
    Reputation
    239
    Join Date
    Mar 2009
    Posts
    642
    Thanks G/R
    1/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very nice, I also agree with stoneharry. Nice release

  5. #5
    Trle94's Avatar Contributor
    Reputation
    167
    Join Date
    May 2009
    Posts
    329
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hehe Thanks buddy


Similar Threads

  1. [Showoff] So I herd u liek mudkipz, then don't click
    By orangepig in forum Art & Graphic Design
    Replies: 5
    Last Post: 01-02-2010, 10:07 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. So i herd you liek chocolate rain mudkipz...
    By Joetherogue in forum Screenshot & Video Showoff
    Replies: 13
    Last Post: 11-09-2007, 06:37 AM
  4. Ok Wtf Is Mudkipz?!
    By Herzeleid in forum Community Chat
    Replies: 11
    Last Post: 10-20-2007, 09:43 AM
  5. Fraps help / sumthing liek that needed :'<
    By Itazuki in forum Community Chat
    Replies: 3
    Last Post: 03-23-2007, 04:14 PM
All times are GMT -5. The time now is 11:25 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search