What's new

He has * frags.

Status
Not open for further replies.

xxxfilipekxxx1

Advanced User
Joined
Jul 1, 2009
Messages
215
Reaction score
5
Age
32
Witam!
Pewny "Pan" da? mi skrypt na to , ?e jak klika si? na gracza to pisz? ile ma frag?w . Tylko, ?e on nie dzia?a? ..
I mam do was pytania kto mi udost?pni taki skrypt na to , ?e jak klikne na gracza ?eby pisa?o :

16:59 You see Nick (Level 100). He is an elder druid.
He has 6 frags.
 

Unass

Active User
Joined
Jul 21, 2010
Messages
123
Reaction score
22
Odp: He has * frags.

function onLook(cid, thing, position, lookDistance)
if(isPlayer(thing.uid) == true) then
doPlayerSetSpecialDescription(thing.uid, ". "..(getPlayerSex(thing.uid) == 0 and "She has" or "He has").." "..getPlayerFrags(thing.uid).." frags")
elseif(isPlayer(thing.cid) == true) then
doPlayerSetSpecialDescription(thing.cid, ". You have "..getPlayerFrags(cid).." frags")
end
return true
end

powinno dzialac
 

Unass

Active User
Joined
Jul 21, 2010
Messages
123
Reaction score
22
Odp: He has * frags.

na 100% dziala bo testowalem...
wklejasz to do data/creaturescripts/scripts/lookfrags.lua

potem rejestrujesz w login.lua i creaturescripts.xml jako event look

@down

to moze wejdziemy do mnie na test server i Ci pokaze ze on dziala -.-
 
Last edited:

xxxfilipekxxx1

Advanced User
Joined
Jul 1, 2009
Messages
215
Reaction score
5
Age
32
Odp: He has * frags.

Nie pokazuje nic w silniku b?ed?w .
Ale jak klikam na posta? to nie pisze ile ma frag?w ;/
Szukam dalej !!!
 
Status
Not open for further replies.
Top