L2Tower Discord Let's keep the community alive with discord. Discussions about plugins and scripts L2Tower Discord

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ayuda con Script de PM
Author Message
kaicer666 Offline
Gremlin
*

Posts: 5
Joined: Jul 2013
Reputation: 0
Version: 1.4.3.143
Post: #1
Ayuda con Script de PM

chicos alguno sabe como armar script para el tower hice este siguiendo ejemplos de otros usuarios, basicamente es para que de una alrta pero no me funciona ni tampoco me funciona los de otro usuarios esto es lo que tengo:

function Chat(chatType, nick, msg)
if ((chatType == 1) or (chatType == 2) or (chatType == 6) or (chatType == 7)) then
ShowToClient("Alarm","Someone may just petitioned you.");
PlaySound(GetDir() .. "alarm.wav");
Command("/useshortcut 10 1"); --> esto es un macro que tengo
end;
end;
(This post was last modified: 01-31-2015 13:17 PM by kaicer666.)
01-31-2015 13:17 PM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #2
RE: Ayuda con Script de PM

En principio calculo que ese codigo salio de un plugin y no de un script y justamente por eso requiere la minima estructura de codigo para activarse y funcionar.
01-31-2015 17:47 PM
Find all posts by this user Quote this message in a reply
kaicer666 Offline
Gremlin
*

Posts: 5
Joined: Jul 2013
Reputation: 0
Version: 1.4.3.143
Post: #3
RE: Ayuda con Script de PM

pasa que fui armando de diferentes plugins y script tienes algo que me pueda ayudar? lo que necesito es que cuando alguien me hablar por pm, peticion y chat general o bien me mande un pm a X personaje o que suene, gracias de antemano

Listo :3 funciona
este es
Code:
alarm = false;

function OnCreate()
    this:RegisterCommand("alarm", CommandChatType.CHAT_ALLY, CommandAccessLevel.ACCESS_ME);
end;

function OnCommand_alarm(vCommandChatType, vNick, vCommandParam)
    
    if (alarm == false) then
alarm = true;
ShowToClient("Alarm","Alarma Activada");
    else
alarm = false;
ShowToClient("Alarm","Alarma Desactivada");    
    end;
    
end;


function OnChatUserMessage(chatType, nick, msg)
    if (((chatType == 2) or (chatType == 6) or (chatType == 7))) then
ShowToClient("Alarm","Someone may just petitioned you.");
PlaySound(GetDir() .. "alarm.wav");
Command("#MSJ"); <-- es cuqluier msj al chat party ya que siempre estoy activo con un pj
end;
end;

function OnLTick1s()
if(start == true) then
ShowToClient("Alarm","Funciona");
end;
end;
[/quote]

una Ultima pregunta sabes cual es el el chattype del chat general el 1?
PD: sigo siendo nuevo en esto XD
(This post was last modified: 02-01-2015 05:38 AM by kaicer666.)
02-01-2015 02:59 AM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #4
RE: Ayuda con Script de PM

Esa es una pregunta ideal para @fox o @kerberos464 haceles pm que seguro te pueden ayudar
02-01-2015 07:20 AM
Find all posts by this user Quote this message in a reply
ExoDo Offline
Restrainer of Glory
*

Posts: 171
Joined: Feb 2014
Reputation: 12
Version: 1.4.2.142
Post: #5
RE: Ayuda con Script de PM

    LUA Programming
CHAT_ALLY L2Tower chat type, value: 6
CHAT_CLAN L2Tower chat type, value: 5
CHAT_CMD L2Tower chat type, value: 1
CHAT_CMD2 L2Tower chat type, value: 2
CHAT_HERO L2Tower chat type, value: 10
CHAT_INTERNAL L2Tower chat type, value: 0
CHAT_PARTY L2Tower chat type, value: 4
CHAT_PM L2Tower chat type, value: 3
CHAT_PUBLIC L2Tower chat type, value: 7
CHAT_SHOUT L2Tower chat type, value: 8
CHAT_TRADE L2Tower chat type, value: 9


todos ellos están en el L2Tower Helper, el que vos quieres usar es el shout == 8
(This post was last modified: 02-02-2015 14:34 PM by ExoDo.)
02-02-2015 14:33 PM
Find all posts by this user Quote this message in a reply
UgliBiBagli Offline
Expired VIP Member
**

Posts: 175
Joined: Jan 2015
Reputation: 29
Version: 1.4.2.132
Post: #6
RE: Ayuda con Script de PM

you are aware that its a plugin, not script?
02-02-2015 16:50 PM
Find all posts by this user Quote this message in a reply
ExoDo Offline
Restrainer of Glory
*

Posts: 171
Joined: Feb 2014
Reputation: 12
Version: 1.4.2.142
Post: #7
RE: Ayuda con Script de PM

he do, in 3 post he share the working version.
02-02-2015 17:11 PM
Find all posts by this user Quote this message in a reply
Skaprox Offline
Gremlin
*

Posts: 5
Joined: Mar 2015
Reputation: 0
Version: 1.4.2.133
Post: #8
RE: Ayuda con Script de PM

Eso es un script o plugin?
04-01-2015 18:46 PM
Find all posts by this user Quote this message in a reply
rORUMI Offline
Expired VIP Member
**

Posts: 278
Joined: May 2014
Reputation: 50
Version: 1.4.2.142
Post: #9
RE: Ayuda con Script de PM

(04-01-2015 18:46 PM)Skaprox Wrote:  Eso es un script o plugin?


El codigo del post 3 mostrado por kaicer666 es un plugin
04-02-2015 02:08 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  ayuda general protection fault Aggresivnes 1 2,982 09-06-2021 23:06 PM
Last Post: markos2515
  Consulta/Ayuda shoeddy 0 1,209 05-18-2021 09:15 AM
Last Post: shoeddy
Star AYUDA CONFIGURARRR alaniz 0 1,392 01-02-2021 03:06 AM
Last Post: alaniz
  Ayuda para abrir mas de 3 cuentas kairos30 7 7,896 06-04-2020 05:36 AM
Last Post: studiotan
  Ayuda por favor ? me tira critical error lauchita92 0 1,628 10-30-2019 16:25 PM
Last Post: lauchita92
  Ayuda! Has sido desconectado del servidor madbytes 2 2,867 04-19-2018 20:28 PM
Last Post: madbytes
  Necesito ayuda porque me da critical error yigi1 5 5,220 01-26-2018 14:32 PM
Last Post: sousseky
Information Ayuda.. Load: general Error: call to loadLibrary N4N023 13 12,892 10-27-2017 01:19 AM
Last Post: smedina2005
Information (AYUDA) ERROR! Su cliente contiene archivos incorrectos Sustainer 0 1,851 10-13-2016 00:55 AM
Last Post: Sustainer
F.A.Q. Ayuda con un script Pls vannsito 0 2,058 07-23-2016 01:02 AM
Last Post: vannsito



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