Playerlog.lua--Player Login Notice

Source: Internet
Author: User

1 Print(">>script:player Log Message.")2 LocalTeam_alliance=03 LocalTeam_horde=14 --class Occupations5 LocalClass_warrior =1        --Warrior6 LocalClass_paladin =2        --Saint Knight7 LocalClass_hunter =3        --Hunter8 LocalClass_rogue =4        --Thieves9 LocalClass_priest =5        --PriestTen LocalClass_death_knight =6        --Death Knight One LocalClass_shaman =7        --Shaman A LocalClass_mage =8        --Mage - LocalClass_warlock =9        --Warlock - LocalClass_druid = One    --Druid the  - Localclassname={--Career Chart -[Class_warrior] ="Warrior", -[Class_paladin] ="Saint Knight", +[Class_hunter] ="Hunter", -[Class_rogue] ="Thieves", +[Class_priest] ="Priest", A[class_death_knight]="Death Knight", at[Class_shaman] ="Shaman", -[Class_mage] ="Mage", -[Class_warlock] ="Warlock", -[Class_druid] ="Druid", - } -  in Local functionGetplayerinfo (player)--Get player Info -     LocalPclass = Classname[player:getclass ()]or "? ? ?" --Get a career to     LocalPname =Player:getname () +     LocalPteam ="" -     Localteam=Player:getteam () the     if(team==team_alliance) Then *Pteam ="|cff0070d0 Alliance |r" $     ElseIf(Team==team_horde) Then Panax NotoginsengPteam ="|cfff000a0 Tribe |r" -     End the     return String.Format("%s%s Player [|cff00ff00| HPLAYER:%S|H%S|H|R]", Pteam,pclass,pname,pname) + End A  the Local functionPlayerfirstlogin (event, player)--Player First Login +Sendworldmessage ("|cffff0000[System] Welcome |r".. Getplayerinfo (player):"|cffff0000 first into World of Warcraft. |r") -     Print("Player is Created. GUID:".. Player:getguidlow ()) $ End $  - Local functionPlayerlogin (event, player)--Player Login -Sendworldmessage ("|cffff0000[System]|r Welcome".. Getplayerinfo (player):"Online") the     Print("Player is Login. GUID:".. Player:getguidlow ()) - EndWuyi  the Local functionPlayerlogout (event, player)--player Log out -Sendworldmessage ("|cffff0000[System]|r".. Getplayerinfo (player):"offline. ") Wu     Print("Player is Logout. GUID:".. Player:getguidlow ()) - End About  $ --Player_event_on_first_login =--(EVENT, PLAYER) -Registerplayerevent ( -, Playerfirstlogin)--First logon - --Player_event_on_login = 3--(EVENT, PLAYER) -Registerplayerevent (3, Playerlogin)--Login A --player_event_on_logout = 4--(EVENT, PLAYER) +Registerplayerevent (4, Playerlogout)--Log Out

Playerlog.lua--Player Login Notice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.