Create Portal

Click here to participate in creation and interaction!
Create

Guide: Register the server communication protocol

2022.03.31 136 0
Share

local DBHandler = require "dbhandler" PackageHandlers.registerServerHandler("LevelChangeServer", function(player, packet)    DBHandler:setData(player.platformUserId, 51, packet[1],true)    World.CurWorld.SystemNotice(1, "level up:  "..string.format("%.0f",packet[1]), 40) end) PackageHandlers.registerServerHandler("ExpChangeServer", function(player, packet)    DBHandler:setData(player.platformUserId, 52, packet[1],true) end)


Reply

You have the same problem?

CANCEL SEND OUT

Post report

Please select the report type*

Please fill in the reason for reporting*

CANCEL SEND OUT