What's new

Movements (pod?oga)

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Silnik Devland 8.0 SQL

Witam mam problem ze skryptem w Movements. Napisa?em skrypt na to aby pod?oga od wymaganego voca dawa?a outfit, lecz gdy wchodz? na pod?og? robi si? crash i nie wiem ocb :curse:
W silniku nie ma ?adnych b??d?w przy ?adowaniu i po b??dzie gdy si? stanie na pod?og?.

SKRYPT :
local out = {lookType=213,lookHead=81,lookAddons=0,lookLegs=88,lookBody=86,lookFeet=88}
local out2 = {lookType=12,lookHead=81,lookAddons=0,lookLegs=88,lookBody=86,lookFeet=88}



function onStepIn(cid, item, pos)
if(isPlayer(cid) == 1) then

if getPlayerVocation(cid) == 76 then
doSetMonsterOutfit(cid, out, -1)

elseif getPlayerVocation(cid) == 77 then
doSetMonsterOutfit(cid, out2, -1)

end
return 1
end
end

W xml :

<movevent event="StepIn" itemid="7351" script="outfit2.lua" />

Za pomoc +++
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

Ale to jest poradnik o movements, tam niema odpowiedzi na m?j temat. Wiem jak tworzy? skrypty w MOVEMENTS. Mi chodzi o to dlaczego crashuje serwa i jak zrobi? aby nie crashowa?o ...
 

Tayfoon

Advanced User
Joined
Jul 29, 2009
Messages
239
Reaction score
12
Odp: Movements (pod?oga)

Mo?e... Zainstaluj sobie plik: ' Restarter.bat ' On zapobiega podobno crashowaniu...
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

Nie on nie zapobiega crashowaniu servera tylko on restartuje po crashu server ...
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

Od?wie?am Od?wie?am Od?wie?am Od?wie?am Od?wie?am
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

od?wieZA M !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

od?wieZA M !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

Idk

Senior User
Joined
Aug 5, 2009
Messages
546
Reaction score
68
Age
29
Odp: Movements (pod?oga)

Code:
local out = {lookType=213,lookHead=0,lookAddons=0,lookLegs=0 ,lookBody=0,lookFeet=0}
local out2 = {lookType=12,lookHead=0,lookAddons=0,lookLegs=0, lookBody=0,lookFeet=0}



function onStepIn(cid, item, pos)
if(isPlayer(cid) == 1) then
if getPlayerVocation(cid) == 76 then
doSetCreatureOutfit(cid, out, -1)
elseif getPlayerVocation(cid) == 77 then
doSetCreatureOutfit(cid, out2, -1)
end
return 1
end
end
Spr?buj tak;p
@edit
Ale u?ywasz jakies funkcji 'SetMonsterOutfit' a mo?e ona domy?lnie zmienia outfit tylko mosterk? dlatego jak player stanie to crash? -.-
 
Last edited:

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

Ale ty cz?owieku niepotrzebnie posty wbijasz :D Nie, to jest to samo nie jestem g?upi :( i skrypt mam dobry tylko dlaczego crasha wywo?uj?... xDDD
 
Last edited:

Amino12

Advanced User
Joined
Jun 12, 2008
Messages
292
Reaction score
48
Odp: Movements (pod?oga)

Witam,
jedyny b??d jaki zauwa?y?em to
Code:
doSetMonsterOutfit
zamie? to na:
Code:
doSetCreatureOutfit
Pozdrawiam
 

Srokes

Advanced User
Joined
Mar 8, 2009
Messages
155
Reaction score
3
Age
28
Odp: Movements (pod?oga)

Ok naprawione TEMAT MO?NA zamkn?? !!
 
Last edited:
Top