• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

event blad!!

Slepy

New Member
Joined
May 14, 2009
Messages
111
Reaction score
1
local ropa = {
[1] = {90000},
[2] = {90001},
[3] = {90002},
[4] = {90003}
}

function onLogin(cid)
local vocacion = getPlayerVocation(cid)
for voc, storage in ipairs(ropa) do
if vocacion == voc then
setPlayerStorageValue(cid, storage[1], 1)
end
return true
end
end

<event type="playeroutfit" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>

registerCreatureEvent(cid, "PlayerOutfit")


Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event

niewiem co jest grane pomoze ktos?
 
Last edited:
local ropa = {
[1] = {1234},
[2] = {2345},
[3] = {3456},
[4] = {4578}
}

function onLogin(cid)
local vocacion = getPlayerVocation(cid)
for voc, storage in ipairs(ropa) do
if vocacion == voc then
setPlayerStorageValue(cid, storage[1], 1)
end
return true
end
<event type="login" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>

zobacz


ps. a ścieżka do skryptu jest poprawna?
 
to samo dalej nic z tego login juz tez ustawialem to akurat pamietalem :p i sciezka jest okey
wczesniej musialem dodac registerCreatureEvent(cid, "PlayerOutfit") do 8.1 ale teraz jak go chce dodac to nic to nie zmienia
 
Last edited:
nic nie daje ;/

moze to pomoze to jest script na dodanie storage dla odpowiedniej profesji gdy tylko stworzy postac i sie na nia zaloguje przypisuje jej odpowiednie storage
 
Last edited:
Lua:
local ropa =
{
	[1] = 1234,
	[2] = 2345,
	[3] = 3456,
	[4] = 4578
}

function onLogin(cid)
	local storage = ropa[getPlayerVocation(cid)]
	if(not storage) then
		return true
	end
	
	setPlayerStorageValue(cid, storage, 1)
	return true
end
Code:
<event type="login" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>
 
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
dalej to samo
 
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>
<event type="login" name="PlayerLogin" script="login.lua"/>
<event type="death" name="PlayerDeath" script="playerdeath.lua"/>
<event type="kill" name="PlayerKill" script="kill.lua"/>
<event type="preparedeath" name="PlayerDeathPrepare" script="playerpreparedeath.lua"/>
<event type="preparedeath" name="Killed" script="reward.lua"/>
</creaturescripts>

chodzi tylko o to zeby mi przypisywalo do kazdej profesji osobne outfity mam 8 profesji 1 storage 1 outfit :p
 
Last edited:
Wystarczyło pomyśleć, nie dość, że ślepy to ...

Code:
<event type="login" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>
na
Code:
<event type="login" name="PlayerOutfit" script="playeroutfit.lua"/>
 
@up ;]
nastepny blad dochodzi
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Warning: [Event::checkScript] Can not load script. /scripts/playeroutfit.lua
data/creaturescripts/scripts/playeroutfit.lua:17: 'end' expected (to close 'function' at line 9) near 'e'
myslisz ze juz tego nie probowalem? :pP
na 8.1 mi nie chcialo isc i musialem dopisac registry do login ale tu juz dopisalem i blad caly czas
 
funkcji onLogin nie trzeba rejestrować, nie skopiowałeś całego mojego skryptu, zapomniałeś prawdopodobnie o ostatnim endzie, nie mam słów do ciebie już.
 
e zamiast end mialem ale to i tak nic nie zmienilo
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
Error: [MoveEvent::configureMoveEvent] No valid event name script
Warning: [BaseEvents::loadFromXml] Can not configure event
niewiem czy to testowales u siebie ale ja mam stigma ots

local ropa =
{
[1] = 1234,
[2] = 2345,
[3] = 3456,
[4] = 4578
}

function onLogin(cid)
local storage = ropa[getPlayerVocation(cid)]
if(not storage) then
return true
end

setPlayerStorageValue(cid, storage, 1)
return true
end
twoj? caly?
<?xml version="1.0" encoding="UTF-8"?>
<creaturescripts>
<event type="login" name="PlayerOutfit" script="playeroutfit.lua"/>
<event type="login" name="PlayerLogin" script="login.lua"/>
<event type="death" name="PlayerDeath" script="playerdeath.lua"/>
<event type="kill" name="PlayerKill" script="kill.lua"/>
<event type="preparedeath" name="PlayerDeathPrepare" script="playerpreparedeath.lua"/>
<event type="preparedeath" name="Killed" script="reward.lua"/>
</creaturescripts>
tez twoje
 
Nie testowałem tego u siebie bo wiem, że nie ma potrzeby, te twoje błędy są spowodowane błędna definicją jakiegoś skryptu w movements.xml.
 
nie dodaje mi storage ;/ do postaci
 
Last edited:
pomoze ktos

nie-wiem-o-co-wam-chodzi-wiec-wklejam-zdjecie-pandy-lecacej-na-gosciu-w-klapkach


Nikt Ci nie pomoże, bo nikt nie wie o co Ci chodzi. Jeden geniusz próbował Ci pomóc bardzo intensywnie, to się poddał ze względu na to, że masz małe pojęcie na temat tego co robisz. Przeczytaj wszystkie posty PiotraWalecznego1337 i wyciągnij z nich wnioski.
 
i pomogl ale storage dalej nie dodaje script. a chodzi o outfity od questow 1 outfit 1 storage zeby dodawalo to w first items niby
 
dodaj to do login.lua łbie i będzie śmigać o ;
po to jest ten plik, żeby w nim umieścić wszystko co ma się stać przy logowaniu -,-
 
Back
Top