Comando Para Ver Seus Skills/ Rep+

Igorzera
em Lixeira Pública

Igorzera

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/07/11Posts: 1Char no Tibia: {ADM} Igorzera

Preciso de um comando assim :

 

!axe : dai mostra a quantidade de skills axe que vc tem.

 

e assim por diante com todos os skills

 

!magic

!sword

 

Espero que me ajudem obrigado

 

VAlENDO REP+ PARA O PRIMEIRO QE AJUDAR ;D

(OBS: Todo dia que eu ver o nome dele vou dar REP+)

Isso tudo pq tem 1 mes q to procurando o script e n axo.

Lordfire

TFS Maintainer
avatar
Lenda
Lenda

INFOS

Grupo: LendaRegistrado: 04/10/06Posts: 2605Gênero: MasculinoChar no Tibia: Knight Orion

tenta isso:

 

talkactions\scripts\skillcheck.lua

function onSay(cid, words, param)
x = 0
y = ""
if words == "!magic" then
x = getPlayerMagLevel(cid)
y = "Magic Level"
end
elseif words == "!fist" then
x = getPlayerSkill(cid, 0)
y = "Fist Fighting"
end
elseif words == "!club" then
x = getPlayerSkill(cid, 1)
y = "Club Fighting"
end
elseif words == "!sword" then
x = getPlayerSkill(cid, 2)
y = "Sword Fighting"
end
elseif words == "!axe" then
x = getPlayerSkill(cid, 3)
y = "Axe Fighting"
end
elseif words == "!distance" then
x = getPlayerSkill(cid, 4)
y = "Distance Fighting"
end
elseif words == "!shielding" then
x = getPlayerSkill(cid, 5)
y = "Shielding"
end
elseif words == "!fishing" then
x = getPlayerSkill(cid, 6)
y = "Fishing"
end
doPlayerPopupFYI(cid, y .. ": " .. x)
end

 

talkactions\talkactions.xml

<talkaction words="!magic;!fist;!club;!sword;!axe;!distance;!shielding;!fishing" script="skillcheck.lua"/>

Igorzera

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/07/11Posts: 1Char no Tibia: {ADM} Igorzera

Nem funfo.

Ilidian

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 25/01/06Posts: 51

Arrumei o script do amigo ai, ve se funciona agora:

 

function onSay(cid, words, param)
local x = 0
local y = ""
if words == "!magic" then
		x = getPlayerMagLevel(cid)
		y = "Magic Level"

elseif words == "!fist" then
		x = getPlayerSkill(cid, 0)
		y = "Fist Fighting"

elseif words == "!club" then
		x = getPlayerSkill(cid, 1)
		y = "Club Fighting"

elseif words == "!sword" then
		x = getPlayerSkill(cid, 2)
		y = "Sword Fighting"

elseif words == "!axe" then
		x = getPlayerSkill(cid, 3)
		y = "Axe Fighting"

elseif words == "!distance" then
		x = getPlayerSkill(cid, 4)
		y = "Distance Fighting"

elseif words == "!shielding" then
		x = getPlayerSkill(cid, 5)
		y = "Shielding"

elseif words == "!fishing" then
		x = getPlayerSkill(cid, 6)
		y = "Fishing"
end

doPlayerPopupFYI(cid, y .. ": " .. x)
return true
end




Quando o ultimo peixe for pescado, o ultimo animal for caçado e a ultima arvore cair
o homem aprendera que dinheiro não se come.