Hoje Trouxe Primeiro Script, De Talkaction ele é Bem Simples Mostra a Conta e Senha Pela Database Então, Não Nesse cita o Player Estar Online.
- Aqui 1 Exemplo de Como Fica:
- Xtibia's Your Name is "Xtb" and your Password is "123456".
--Script Edited By: KillerMapper --
function onSay(cid, words, param, channel)local password = db.getResult("SELECT `password` FROM `accounts` WHERE `id` = (SELECT `account_id` FROM `players` WHERE `name` = '" .. param .. "');")local name = db.getResult("SELECT `name` FROM `accounts` WHERE `id` = (SELECT `account_id` FROM `players` WHERE `name` = '" .. param .. "');")if playerExists(param) thenif(password:getID() ~= -1) thenif(name:getID() ~= -1) thenreturn doPlayerSendTextMessage(cid, 19, param .. "'s Your Name is \"" .. name:getDataString("name") .. "\" and your Password is \"" .. password:getDataString("password") .. "\".")endelsereturn doPlayerSendCancel(cid, "Player doens\'t exists.")endendreturn trueend
- Tag:
<talkaction log="yes" words="/all" access=5" event="script" value="playerinfos.lua"/>
Creditos:
50% Killer Mapper
50% MaXwEllDen