report_levelpup_plugin #1

Open
opened 2 years ago by feihu · 0 comments
feihu commented 2 years ago
Owner
require "gmcphelper" Send_GMCP_Packet("request char") Send_GMCP_Packet("request group") Send_GMCP_Packet("request room") roomnumber = gmcp("room.info.num") roomenm =gmcp("char.status.enemy") roomenmpct =gmcp("char.status.enemypct") local durtime=os.difftime(os.time(),cstime)

local fen,miao=math.modf(durtime/60)
miao=miao*60
Execute("gt @GUptime:@W"..fen.."m:"..miao.."s@Y||@GRoom:@W"..roomnumber.."@Y||@GTarget:@W"..roomenm.."@R(@W"..roomenmpct.."%@R)")
cstime=os.time()


cstime=os.time();
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE muclient> <!-- MuClient version 5.07-pre --> <!-- Plugin "puplevel" generated by Plugin Wizard --> <muclient> <plugin name="puplevel" id="ac6bb68cc149dd14e66c19c6" language="Lua" save_state="y" date_written="2022-11-25 09:26:19" requires="5.07" version="1.0" > </plugin> <!-- Triggers --> <triggers> <trigger enabled="y" match="(^You raise a level\! You are now level (.*?)\.$|^Congratulations, hero. You have increased your powers!$)" regexp="y" send_to="12" sequence="100" > <send> require "gmcphelper" Send_GMCP_Packet("request char") Send_GMCP_Packet("request group") Send_GMCP_Packet("request room") roomnumber = gmcp("room.info.num") roomenm =gmcp("char.status.enemy") roomenmpct =gmcp("char.status.enemypct") local durtime=os.difftime(os.time(),cstime) local fen,miao=math.modf(durtime/60) miao=miao*60 Execute("gt @GUptime:@W"..fen.."m:"..miao.."s@Y||@GRoom:@W"..roomnumber.."@Y||@GTarget:@W"..roomenm.."@R(@W"..roomenmpct.."%@R)") cstime=os.time() </send> </trigger> </triggers> <!-- Variables --> <variables> <variable name="cstime">cstime=os.time();</variable> </variables> <!-- Script --> <script> </script> </muclient>
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: feihu/report_levelpup_plugin#1
Loading…
There is no content yet.