Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:18:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by Ertzel
[Today at 10:11:57 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Site Author : Topic: Instrument Script  (Read 2990 times)
0 Members and 1 Guest are viewing this topic.
March 30, 2006, 10:10:38 AM
Active Member
***
User No : 113
Posts: 302
  • 0 credits
  • View Inventory
  • Send Money To Lameroth
  • Location : Lameroth's Room, a.k.a. HELL!
    I own Satan
    • View Profile
    simple: every time u press ctrl it plays a random sound. it only works with the  newest version (beta one for now)

    But this after your scripted tiles, if u dont have the atack sub:

    Quote

    Sub OnAttack(index)
    '********************************


    Dim randomiser
    Dim max
    Dim note
    Dim player_weapon
    Dim weapon_slot

    weapon_slot=Int(getplayerweaponslot(index))
    player_weapon=Int(Getplayerinvitemnum(index, Int(weapon_slot) ) )

    Select Case player_weapon

    Case 1

    max = Getvar("scripts\guitarsounds.ini", "index", "total_sounds")
    randomiser = Int((Int(max) + 1) * Rnd) + 0
    If randomiser = 0 Then
    randomiser = 1
    End If
    note = GetVar("scripts\guitarsounds.ini", "sounds", Int(randomiser))
    Call PlaySound(index, note)

    End Select

    End sub

     
    in red is the number of the intrument item


    now create a ini called guitarsounds.ini and put this on:
    Code: [Select]

    [INDEX]
    total_sounds=6

    [SOUNDS]
    1=do.wav
    2=dosus.wav
    3=re.wav
    4=resus.wav
    5=mi.wav
    6=fa.wav
    7=fasus.wav
    8=sol.wav
    9=solsus.wav
    10=la.wav
    11=lasus.wav
    12=si.wav
    13=slide.wav


    I think its easy to understand: total_sounds are the total of sounds u have in ur SFX folder and u want be able to play.
    For each sound u have a number, and write the name of the sound, with the .wav or .midi thing.

    for having more than one intrument, edit the case to get the file names from other .ini.

    I based in baron's talking weapons script, so hail him


    sound effects: u can use mine: http://www.megaupload.com/pt/?d=IXW9E9AU


    put them in the SFX folder.

    btw, those sounds were made with guitar pro. they are just power chords (most used technique in rock music). but when I get a new guitar cable, ill do some better sounds. :D
    Logged

    Paul is dead.
    March 30, 2006, 10:12:04 AM
    Lord Of Spleens
    Administrator
    Teh Uberleet
    *
    User No : 166
    Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    Thanks for the credit but you worked hard on this :) well done. maybe also rar up your guitar sounds for a downloadable link, and tell people where to put them.
    Logged


    Apparently ICT thinks that:
    [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ]

    If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
    March 30, 2006, 10:25:24 AM
    Active Member
    ***
    User No : 113
    Posts: 302
  • 0 credits
  • View Inventory
  • Send Money To Lameroth
  • Location : Lameroth's Room, a.k.a. HELL!
    I own Satan
    • View Profile
    damn, html never works with me. added.
    Logged

    Paul is dead.
    March 31, 2006, 02:13:28 AM
    The Gnome King
    Global Moderator
    Advanced Eclipser
    *
    User No : 264
    Posts: 1442
  • 26 credits
  • View Inventory
  • Send Money To Draken
  • Location : Texas USA
    • View Profile
    • WWW
    Sweet im going to test this out in a few :)

    ill see what I can do with it

    *bows* *bows* Im not worthy! *bows* *bows*


    <edit> Your link is broken or something for the guitar effects </edit>


    <edit again> also where do I stick the first one at bottem of main? </edit again>


    <edit once more> I figured it out lol  I also made some guitar things but my webhost wont let me post them /shrug dont know why lol Guys this thing rocks its not exactly what I was looking for but this is even better lol  One Question though Will other players be able to hear the music as well?</edit once more>
    Logged



    With every post my army of gnomes grows larger. Soon we will dominate the WORLD!! DOMINATION!




    Soon looking for a few mappers to help map Storm of Conquest. Will need mappers to do atleast 3 maps a day. PM me with map example if you want to help
    March 31, 2006, 03:49:41 AM
    Active Member
    ***
    User No : 113
    Posts: 302
  • 0 credits
  • View Inventory
  • Send Money To Lameroth
  • Location : Lameroth's Room, a.k.a. HELL!
    I own Satan
    • View Profile
    I ask myself that question. probably not. which sucks.
    Logged

    Paul is dead.
    March 31, 2006, 09:01:13 AM
    Lord Of Spleens
    Administrator
    Teh Uberleet
    *
    User No : 166
    Posts: 2951
  • 0 credits
  • View Inventory
  • Send Money To Baron
  • Location : Australia
    Badges? We dont need no stinkin' badges!
    • View Profile
    well they would if he had a more advanced scripting knowledge.

    Then hed realise he could do a loop through all player index numbers to check for map and play sound based off whether they are on the map to hear it or not.

    But I doubt hed have though of doing it like that or posesses the scripting knowledge to do so.
    Logged


    Apparently ICT thinks that:
    [ 98% of Eclipse forums thinks baron is cool. Put this in your signature if you are on of the 2% that knows he's an asshôle ]

    If I'm only pissing 1 in 50 people off, I don't think that is too bad at all :D
    March 31, 2006, 10:01:22 AM
    Active Member
    ***
    User No : 282
    Posts: 396
  • 0 credits
  • View Inventory
  • Send Money To n0madic0debc
  • Location : Lost somewhere dont know, NYC
    • View Profile
    Wow nice script lameroth your not so lame
    Logged


    March 31, 2006, 11:35:59 AM
    Active Member
    ***
    User No : 113
    Posts: 302
  • 0 credits
  • View Inventory
  • Send Money To Lameroth
  • Location : Lameroth's Room, a.k.a. HELL!
    I own Satan
    • View Profile
    why no one realises that my name is an irony...
    btw, ill record some drum sound in some minutes. and upload them, of course
    Logged

    Paul is dead.
    April 01, 2006, 03:49:50 AM
    The Gnome King
    Global Moderator
    Advanced Eclipser
    *
    User No : 264
    Posts: 1442
  • 26 credits
  • View Inventory
  • Send Money To Draken
  • Location : Texas USA
    • View Profile
    • WWW
    how hard will it be to make it where other players can hear on the map your on?
    Logged



    With every post my army of gnomes grows larger. Soon we will dominate the WORLD!! DOMINATION!




    Soon looking for a few mappers to help map Storm of Conquest. Will need mappers to do atleast 3 maps a day. PM me with map example if you want to help
    November 12, 2009, 06:08:27 PM
    Active Member
    ***
    User No : 9542
    Posts: 210
  • 0 credits
  • View Inventory
  • Send Money To dtdsora
  • Location : somewhere in Mac Anu
    the leader of the "V" reveolution
    • View Profile
    • WWW
    erm... how exactly do I put this in my game? I tried to do that with Barons talking weapon script, but I couldn't figure it out...
    Logged

    Please click, I am at rank 4838
    November 13, 2009, 11:25:30 PM
    Demi God
    User No : 1436
    Posts: 5573
  • 1104 credits
  • View Inventory
  • Send Money To Anna Comnena
  • Location : Colorado
    • View Profile
    Basically you add this script into your OnAttack. This requires a little bit of precision because a straight copy-paste-over could ruin your Main.txt (especially if you have other script mods that use OnAttack).

    I know this is old, but what if you attached the music note SFX file to a spell animation, and then play the spell animation in the script instead of the PlaySound() call, wouldn't that be audible to all players? You could also throw in a little animated music note effect on the spell anim too.
    :cool:
    Logged

    Please don't PM me for H&H hearth secrets!
    Everyone's a newbie at some point!
    You want to keep something a secret? Put it in big red letters in a Sticky post on an Internet forum, nobody will ever see it.
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.244 seconds with 31 queries.