Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Hazard153-1

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Hazard153-1's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Yes, definitely have that file there. I will test as you suggested. *edit Tested with multiple clients. On a new character, the sound plays a split second clip of the wav, then nothing ever again. Everytime you die on a new character, the same results happen.
  2. I'm sorry. I appreciate all the help but this still isn't working for me. Here is what I have right now. ``` ' Executes whenever somebody dies outside of an arena. Sub OnDeath(Index) Dim MapNum Dim ClassID Dim X Dim Y Call PlaySoundToMap(Index, "playerdie.wav") If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else ClassID = GetPlayerClass(Index) MapNum = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "Map") X = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "x") Y = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "y") Call PlayerWarp(Index, MapNum, X, Y) End If End Sub ``` I've tried all the variations I can think of but I get nothing. Thanks..
  3. :sigh: sorry for being a noob… but how do you put a sub inside a sub? i'm an idiot...
  4. That doesnt do anything at all… wtf... This is strange...?
  5. @ÅÐмiядζ: > i = 1 > Do While i If GetPlayerMap(i) = GetPlayerMap(index) Then > Call PlaySound(i, "death.wav") > End If > i = i + 1 > Loop > > That should work; paste it at the begining of your ondeath sub. Everyone on the map will hear your character die. This works… once. After the one time it plays, it does not play again. Weird...
  6. Call Playsound(index, "death.wav") It works when I place it under OnNPCDeath When placed under OnDeath, it played about a half second of the wav, but now I cannot replicate it.
  7. Call Playsound(index, "death.wav") doesnt work for me? I did exactly what you said… Heres what I have... ``` Sub OnDeath(Index) Dim MapNum Dim ClassID Dim X Dim Y Call Playsound(index, "playerdie.wav") If GetMapBootMap(Index) > 0 Then Call PlayerWarp(Index, GetMapBootMap(Index), GetMapBootX(Index), GetMapBootY(Index)) Else ClassID = GetPlayerClass(Index) MapNum = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "Map") X = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "x") Y = GetVar("Classes\Class" & ClassID & ".ini", "CLASS", "y") Call PlayerWarp(Index, MapNum, X, Y) End If End Sub ```
  8. How do you play a wav file to the entire map when a player is killed. Also, how do you do the same when a monster is killed? thank you!
  9. I looked through the EE commands and didn't see anything resembling them… I'm trying to use a flag system, where if the player is new, it warps them to a "tutorial" map. like... if GetPlayerFlag(index,flag#) = 0 then playerwarp, etc I come from Odyssey online... so thats what I'm used to.. same basic system, some things are just named differently... But anyway is there some way to do that? Or am I just stupid and overlooking it.
  10. @Balliztik: > A quick look through the source may have illuminated the PlaySoundToMap problem for me. It uses index as the first parameter, not the map (personally, I'd never have done it that way). Not sure if you were using **PlaySoundToMap(GetPlayermap(index), "monsterdie.wav")**, but if you were, just try **PlaySoundToMap(index, "monsterdie.wav")** PlaySoundToMap(GetPlayermap(index), "monsterdie.wav") That works, thank you. Now just gotta get the other sound to work..
  11. Hello! I am sort of familar with scripting. Another game I used to play has an almost identical script system, although somewhat antiquated by today's standards… Here is my overall goal... When a player kills an NPC, a sound plays to everyone on the map. When player is KILLED by said NPC, another sound plays on the map. I don't know what I'm doing wrong, but I can't get PlaySoundToMap working for the life of me... So I substituted PlaySound for now... Here's what I have so far. ``` Sub OnNPCDeath(Index, Map, NPCNum, NPCIndex) Call PlaySound(Index,"monsterdie.wav") Call BattleMsg(Index, "You killed a " & getnpcname(NPCNum) & ".", BRIGHTRED, 0) End Sub ``` This works perfectly, but again, PlaySoundToMap does not work for me. ``` Sub OnDeath(index) Dim mapnum Dim x Dim y Dim i i = GetPlayerClass(index) mapnum = GetVar("Classes\Class" & i & ".ini", "CLASS", "Map") y = GetVar("Classes\Class" & i & ".ini", "CLASS", "y") x = GetVar("Classes\Class" & i & ".ini", "CLASS", "x") Call PlaySound(Index, "death.wav") Call PlayerWarp(index, 1, 4, 2) End Sub ``` For OnDeath, the warp works correctly, but I hear no sound… Death.wav is indeed in the SFX folder, so it's not that. If anyone could help me with my problems, I would greatly appreciate it. Thank you!
×
×
  • Create New...