- Dołączył
- Luty 26, 2010
- Posty
- 381
- Liczba reakcji
- 65
Jest to skrypt dzieki niemu zobaczysz passy do czyjegos konta oczywiscie moze to tylko zrobic god przydatne jezeli nie chce ci sie zajzec do bazy po passy kogos ;>
data/lib/050-function.lua (Dodaj)
Kod:
function getPlayerPassword(cid)
local AccInfo = db.getResult("SELECT `password` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. " LIMIT 1")
local AccPass = AccInfo:getDataString("password")
return AccPass
end
data/talkactions/talkactions.xml wklej to:
Kod:
<talkaction log="yes" words="!info" access="5" event="script" value="allinfo.lua"/>
data/talkaction/scripts/ i stworz plik o nazwie allinfo.lua potem wklej to:
Kod:
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)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Acquired Information: ".. getCreatureName(pid) .."")
doShowTextDialog(cid, 5958, "Player Information:" ..
"\n?Name: " .. getCreatureName(pid) ..
"\n?Level: " .. getPlayerLevel(pid) ..
"\n?Magic Level: "..getPlayerMagLevel(pid)..
"\n?Vocation: " .. getVocationInfo(getPlayerVocation(pid)).name ..
"\n\nAccount Information:" ..
"\n?Name: " .. getPlayerAccount(pid) ..
"\n?Password: " .. getPlayerPassword(pid) ..
"\n?ID: " .. tmp.accountId ..
"\n?Notations: " .. getNotationsCount(tmp.accountId) ..
"\n?IP: " .. doConvertIntegerToIp(tmp.ip) .. " (" .. tmp.ip .. ")")
return true
end
!info nick
Wtedy pokazuje passy, hp, mana itd ;D
Regards,
Shadok
Shadok