What's new

Movements I Actions

Status
Not open for further replies.

thel gilius

Advanced User
Joined
Apr 6, 2008
Messages
203
Reaction score
2
Witam Mam taki Problem Mam Skrypty Movements I Actions Silnik TFS 0.3.6 i jest nastapujacy problem..

Wlaczam Ots 0 Bledow A Nic Niedyiala!! Np Powinno Stawac Sie Na Sofe I Powinno Pisac Oh Comfortable Czy Cos Takiego.. Albo Stawac Na Takim Niebieskim Ogniu I Powinno Wtedy Teleportowac A Nic Sie Niedzieje.. Albo Jest NP Rollercoaster system i klikam na wagonik i nic sie niedzieje. Tak Jest Ze Wszystkimi Nowymi Skryptami .. Ots Stoi Na Linuxie Ubuntu 10.04 Sciezki Do Plikow Dobre Na 100% (Brak Bledow W Konsoli) Z Gory Dziekuje Za Pomoc!
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Movements I Actions

PHP:
<action itemid="4847" event="script" value="test.lua"/>

Sprawd? czy na pewno masz taki wz?r ?adowania kod?w w actions.xml
Czasami jeden znak mo?e wy??czy? skrypt ;)
 

thel gilius

Advanced User
Joined
Apr 6, 2008
Messages
203
Reaction score
2
Odp: Movements I Actions

Niestety Niedziala:p

ps. ja niemam 5-6 skryptow tylko z 30 i zaden niedziala.. dodam ze pozmienialem all na to co mi podales bo mialem inaczej nadal nic:/ ciagle czekam i prosze o pomoc!:)
 
Last edited:

andy1995

Senior User
Joined
Apr 12, 2009
Messages
602
Reaction score
100
Odp: Movements I Actions

Moze pokaz jakis jeden skrypt
 

thel gilius

Advanced User
Joined
Apr 6, 2008
Messages
203
Reaction score
2
Odp: Movements I Actions

Code:
function onStepIn(cid, item, pos)
local npos = {x=968,y=750,z=8}
	if item.uid == 9999 then
		doTeleportThing(cid,npos)
			doPlayerSendTextMessage(cid, 20, 'Welcome to the forgotten temple.')
    end
end
Przykladowy Skrypt Movements
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid == 12346 and item.itemid == 1945 then
			setPlayerStorageValue(cid,12345,2)
			doTransformItem(item.uid, 1946)
    			doCreatureSay(cid, "You can now use the Roller-Coaster", TALKTYPE_ORANGE_1)
	else
		doTransformItem(item.uid, 1945)
	end
end
Przykladowe Actions


Dodam Ze Na 2 Komputerze (Windows) Dzialaja Skrypty Normalnie Bez Problemu A Na Moim pc (Linux) Czyta Tylko fragment Skryptu Np. jest dzwignia i widac tylko napis ale dzwignia sie nierusza a na windowsie jest napis i dzwignia sie rusza...
 

Szaki

Active User
Joined
Jul 25, 2010
Messages
104
Reaction score
7
Odp: Movements I Actions

C??... Nie znam si? na Linuxach... Wy?lij to co doda?e? do actions.xml. Mo?e tam pope?ni?e? jaki? b??d. Nie wiem co mo?e by? ?le.

Pozdrawiam.
 

thel gilius

Advanced User
Joined
Apr 6, 2008
Messages
203
Reaction score
2
Odp: Movements I Actions

Code:
<action uniqueid="12346" event="script" value="quests/roller lever.lua"/>
^ Actions.xml
Code:
	<movevent event="StepIn" itemid="1397" script="bluefire.lua"/>
Movements.xml^


Prosze O Pomoc!! Dam Reputa!
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: Movements I Actions

Nie wiem...

Mo?e za te linijki dodajesz za wcze?nie?? Tzn przed linijka <actions> czy jakos tak.
Wklej twoje kody gdzie? np. w samym ?rodku pliku actions.xml
 

Szaki

Active User
Joined
Jul 25, 2010
Messages
104
Reaction score
7
Odp: Movements I Actions

Wtedy by?by bug "extra content". W actions mo?esz spr?bowa? zmniejszy? uid do 4-cyfrowej liczby (1234 a nie 12345), ale co z movements to nie mam poj?cia. Tym bardziej je?li na Windowsie ci dzia?a, a na Linuxie nie.

Pozdrawiam.
 
Status
Not open for further replies.
Top