View Full Version : Alarms exceptions?
Hi, I'm going to use xenobot for skilling my low lvl knight on monk. And I have a problem.
I need script for logout when other player show up. There is option to alarm/logout when player on screen, but I can't set exception to my second char. Maybe someone know how to deal with it?
HjugO
12-27-2015, 09:50 AM
Hi, I'm going to use xenobot for skilling my low lvl knight on monk. And I have a problem.
I need script for logout when other player show up. There is option to alarm/logout when player on screen, but I can't set exception to my second char. Maybe someone know how to deal with it?
No, GTFO to PXForum.
I found something like this in case someone is searching for this:
local PlayerAround = 2 --how many players is on screen now. I have my char and second char, so this need to be 2.
function playerCount()
local count = 0
for name, creature in Creature.iPlayers() do
count = count + 1
end
return count
end
Module.New("Player", function(mod)
local pc = playerCount()
if (pc >= PlayerAround) then
os.exit() -- change to alert() if you want to alert instead of loging out
elseif (pc < PlayerAround) then
end
mod:Delay(100)
end)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.