• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[REQUEST] Information About Players!

Heroid

Active Member
Joined
Mar 7, 2011
Messages
336
Solutions
13
Reaction score
36
Hello every1, I would like a script on Information about players... I got this, But i don't want ALL the info it's showing. I do only want this info... (COMES A BIT DOWN SCROLL DOWN NOW! :D)
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end

local pid = getPlayerByNameWildcard(param)
if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
return true
end

local tmp = {accountId = getPlayerAccountId(pid), ip = getPlayerIp(pid)}
local pos = getCreaturePosition(pid)
doPlayerPopupFYI(cid, "Information about player" ..
"\nName: " .. getCreatureName(pid) ..
"\nGUID: " .. getPlayerGUID(pid) ..
"\nGroup: " .. getPlayerGroupName(pid) ..
"\nAccess: " .. getPlayerAccess(pid) ..
"\nVocation: " .. getVocationInfo(getPlayerVocation(pid)).name ..
"\nStatus:" ..
"\nLevel - " .. getPlayerLevel(pid) .. ", Magic Level - " .. getPlayerMagLevel(pid) .. ", Speed - " .. getCreatureSpeed(pid) ..
"\nHealth - " .. getCreatureHealth(pid) .. " / " .. getCreatureMaxHealth(pid) .. ", Mana - " .. getCreatureMana(pid) .. " / " .. getCreatureMaxMana(pid) ..
"\nSkills:" ..
"\nFist - " .. getPlayerSkillLevel(pid, SKILL_FIST) .. ", Club - " .. getPlayerSkillLevel(pid, SKILL_CLUB) .. ", Sword - " .. getPlayerSkillLevel(pid, SKILL_SWORD) .. ", Axe - " .. getPlayerSkillLevel(pid, SKILL_AXE) ..
"\nDistance - " .. getPlayerSkillLevel(pid, SKILL_DISTANCE) .. ", Shielding - " .. getPlayerSkillLevel(pid, SKILL_SHIELD) .. ", Fishing - " .. getPlayerSkillLevel(pid, SKILL_FISHING) ..
"\nCash:" ..
"\nCrystal - " .. getPlayerItemCount(pid, 2160) .. ", Platinum - " .. getPlayerItemCount(pid, 2152) .. ", Gold - " .. getPlayerItemCount(pid, 2148) ..
"\nBalance: " .. getPlayerBalance(pid) ..
"\nPosition: [X - " .. pos.x .. " | Y - " .. pos.y .. " | Z - " .. pos.z .. "]" ..
"\n\nInformation about account" ..
"\nName: " .. getPlayerAccount(pid) ..
"\nID: " .. tmp.accountId ..
"\nNotations: " .. getNotationsCount(tmp.accountId) ..
"\nIP: " .. doConvertIntegerToIp(tmp.ip) .. " (" .. tmp.ip .. ")")
return true
end

EXAMPLE!
|||||||||
VVVVVVV

Name: Xinity
Guild:
Position: vip
Vocation: Assassin
Level - 488757
Magic Level - 575

~Kill/Death Info~
Total Deaths - 186
Player Kills - 61
Player Deaths - 45
PvP Kill/Death Ratio - 1.36

You could fix my script or make a new one, Thanks in advance, Heroid ;)...
 
None yet, just made My server adding some deafult commands, can you recommend some special VIP System? :) I want it add 25% xp and a special hunt places for them ;) and can teleport with it... :)
 
Back
Top