What's new

Skrypty & Kody 7.92 Po zalogowaniu ustawia profesji dany looktype

Status
Not open for further replies.

balwan096

User
Joined
Aug 24, 2009
Messages
48
Reaction score
0
Witam!
Potrzebuj? skryptu kt?ry po zalogowaniu na dan? profesj?(vocation) ustawi jej wybrany looktype. Silnik nie posiada creaturescripts ani login.lua
 

Thorge D

Advanced User
Joined
Jul 24, 2014
Messages
300
Reaction score
29
Odp: 7.92 Po zalogowaniu ustawia profesji dany looktype

Spr?buj takiego zastosowania.

W data/creaturescripts/reaturescripts.xml dodaj:
[xml] <event type="login" name="Outfitek" event="script" value="outfitek.lua"/>[/xml]
W data/creaturescripts/scripts/login.lua dodaj:
[lua]registerCreatureEvent(cid, "Outfitek") [/lua]

Stw?rz outfitek.lua w data/creaturescripts w nim to:
[lua]function onLogin(cid)
local jakisoutfit = {lookType = 122}
if getPlayerVocation(cid) == X then
doSetCreatureOutfit(cid, jakisoutfit, -1)
end
return true
end[/lua]
Je?li chcesz na wi?cej profesji,
u?yj: (nie testowane, ale powinno dzia?a?)
[lua]function onLogin(cid)
local outfity = {
[1] = {121}
[2] = {122}
[3] = {123}
}
for i = 1, #outfity
if getPlayerVocation(cid) == outfity then
doSetCreatureOutfit(cid, outfity[1], -1)
end
return true
end[/lua]

[1], [2], [3] id profesji
121, 122, 123 przyporz?dkowany outfit do danej profesji.
 

DanJ93

ElfBot Helper
Joined
Jan 18, 2009
Messages
2,631
Reaction score
200
Odp: 7.92 Po zalogowaniu ustawia profesji dany looktype

#UP
Wyra?nie napisa?, ?e nie ma creaturescripts.
Dzi?ki, ?e udost?pniasz m?j skrypt ;)
 

misztrz440

Banned
Joined
Dec 15, 2012
Messages
1,032
Reaction score
39
Odp: 7.92 Po zalogowaniu ustawia profesji dany looktype

No to baza danych/source.
 

Kibako

Active User
Joined
Aug 1, 2013
Messages
51
Reaction score
1
Odp: 7.92 Po zalogowaniu ustawia profesji dany looktype

7.92 to xml
 
Status
Not open for further replies.
Top