gracias hello mira yo lo que ago es esto y no me deja compilar..
pero lo que pasa que nose si estoy bien en el lugar donde se cambia eso..
yo lo cambio en este lugar asi.. aver si me podrian ayudar..
Sub NPCRemueveVenenoNPC(ByVal npcind As Integer, ByVal NPCAlInd As Integer, ByVal indice As Integer)
On Error GoTo errorh
Dim indireccion As Integer
indireccion = Npclist(npcind).Spells(indice)
'' Envia las palabras magicas, fx y wav del indice-esimo hechizo del npc-hostiles.dat
If UserList(UserIndex).Stat.Criminal Then
Call SendData(SendTarget.ToNPCArea, npcind, Npclist(npcind).Pos.Map, "||" & vbRed & "° " & Hechizos(indireccion).PalabrasMagicas & " °" & str(Npclist(npcind).Char.CharIndex))
Else
Call SendData(SendTarget.ToNPCArea, npcind, Npclist(npcind).Pos.Map, "||" & vbCyan & "° " & Hechizos(indireccion).PalabrasMagicas & " °" & str(Npclist(npcind).Char.CharIndex))
Call SendData(SendTarget.ToNPCArea, NPCAlInd, Npclist(NPCAlInd).Pos.Map, "CFX" & Npclist(NPCAlInd).Char.CharIndex & "," & Hechizos(indireccion).FXgrh & "," & Hechizos(indireccion).loops)
Call SendData(SendTarget.ToNPCArea, npcind, Npclist(npcind).Pos.Map, "TW" & Hechizos(indireccion).WAV)
Npclist(NPCAlInd).Veneno = 0
Npclist(NPCAlInd).flags.Envenenado = 0
Exit Sub
errorh:
LogError ("Error en NPCAI.NPCRemueveVenenoNPC? ")
End Sub
PD: lo que esta en rojo no me deja .. lo cambio en petrorianscoopnc
lo que pongo ahora es como seria sin cambiar anda..
Sub NPCRemueveVenenoNPC(ByVal npcind As Integer, ByVal NPCAlInd As Integer, ByVal indice As Integer)
On Error GoTo errorh
Dim indireccion As Integer
indireccion = Npclist(npcind).Spells(indice)
'' Envia las palabras magicas, fx y wav del indice-esimo hechizo del npc-hostiles.dat
Call SendData(SendTarget.ToNPCArea, npcind, Npclist(npcind).Pos.Map, "||" & vbCyan & "° " & Hechizos(indireccion).PalabrasMagicas & " °" & str(Npclist(npcind).Char.CharIndex))
Call SendData(SendTarget.ToNPCArea, NPCAlInd, Npclist(NPCAlInd).Pos.Map, "CFX" & Npclist(NPCAlInd).Char.CharIndex & "," & Hechizos(indireccion).FXgrh & "," & Hechizos(indireccion).loops)
Call SendData(SendTarget.ToNPCArea, npcind, Npclist(npcind).Pos.Map, "TW" & Hechizos(indireccion).WAV)
Npclist(NPCAlInd).Veneno = 0
Npclist(NPCAlInd).flags.Envenenado = 0
Exit Sub
errorh:
LogError ("Error en NPCAI.NPCRemueveVenenoNPC? ")
End Sub
la cuestion es que sigo sin saber si estoy bien en el lugar donde se cambia muchas gracias