eustach3
VIP Member
  
Posts: 324
Joined: Sep 2011
Reputation: 133
Version:
1.4.3.143
|
RE: Alarm
Hmm, must be something wrong, it should have work, try also like this:
Anyway, if you get crash its not a big deal chatType == 2 is for PM, chatType ==3 is for party i guess you have to play with the others and test if you get crash.
As for the second question.. you can find them by pressing the Editor View button in l2tower, you will find support for lua scripting.
For functions available only in plugin look here:
LUA Programming
function OnCreate()
--Event called after plugin is loaded, you should setup here any default vars,
--and register to any commands or [/b]other things.
end;
function OnDestroy()
--Event called before plugin gets destroy, make sure you kill any threads what you created.
end;
function OnTick()
--Event called very 100ms, you can use it to check anything, don't put lot of code here.
--Event is called always, some data maybe unavaible when no user is logged in.
--Also calling some functions can make game crash (or force you to diconnect).
end;
function OnLTick()
--Event called very 100ms, you can use it to check anything, don't put lot of code here.
--This event is called only if user is loged in.
end;
function OnTick500ms()
--Event called very 500ms, you can use it to check anything, don't put lot of code here.
--Event is called always, some data maybe unavaible when no user is logged in.
--Also calling some functions can make game crash (or force you to diconnect).
end;
function OnLTick500ms()
--Event called very 500ms, you can use it to check anything, don't put lot of code here.
--This event is called only if user is loged in.
end;
function OnTick1s()
--Event called very 1s, you can use it to check anything, don't put lot of code here.
--Event is called always, some data maybe unavaible when no user is logged in.
--Also calling some functions can make game crash (or force you to diconnect).
end;
function OnLTick1s()
--Event called very 1s, you can use it to check anything, don't put lot of code here.
--This event is called only if user is loged in.
end;
function OnLogin(username)
--Event called after user login
end;
function OnLogout()
--Event called before user logout
end;
function OnAttackCanceled(user)
--Event called when some player/npc cancel his attack.
end;
function OnAttack(user, target)
--Event called when some player/npc attack other.
end;
function OnAttacked(user, target)
--Event called when some player/npc attacked other.
end;
function OnAutoAttackStart(user, target)
--Event called when some player/npc activate auto attack.
end;
function OnUserInfo(user)
--Event called when we get some info about ourself
end;
function OnCharInfo(player)
--Event called when we get some info about someother players (he spawn)
end;
function OnNpcInfo(npc)
--Event called when we get some info about some npc/monster (he spawn)
end;
function OnDeleteUser(user)
--Event called when some npc/player/user dissaper from map.
end;
function OnDie(user, spoiled)
--Event called when some npc/player/user die.
end;
function OnRevive(user)
--Event called when some npc/player/user revive.
end;
function OnMagicSkillCanceled(user)
--Event called when some npc/player/user cancel magic skill.
end;
function OnMagicSkillLaunched(user, target, skillId)
--Event called when some npc/player/user casted magic skill on someone other.
--For AOE skills this event will be called for every target.
end;
function OnMagicSkillUse(user, target, skillId)
--Event called when some npc/player/user start cast magic skill on someone other.
end;
function OnTargetSelected(user, target)
--Event called when some npc/player/user select target.
end;
function OnMyTargetSelected(target)
--Event called when our target got change.
end;
function OnTargetUnselected(user)
--Event called when some npc/player/we cancel target.
end;
function OnChangeMoveType(user)
--Event called when some npc/player/we change move type from walk to run for example.
end;
function OnChangeWaitType(user)
--Event called when some npc/player/we change wait type from sit to stand for example.
end;
function OnChatUserMessage(chatType, nick, msg)
--Event called someone say something on chat. chatType is a EChatType enum.
end;
function OnChatSystemMessage(id, msg)
--Event called some system message show up on chat (id - integer, msg - string).
end;
(This post was last modified: 04-20-2014 19:04 PM by eustach3.)
|
|