Reklama
Pokazuje wyniki od 1 do 2 z 2

Temat: [7,92][movements]pływanie

  1. #1
    Avatar GM Esio
    Data rejestracji
    2007
    Położenie
    Mysłowice
    Wiek
    32
    Posty
    333
    Siła reputacji
    18

    Domyślny [7,92][movements]pływanie

    Witam,
    Potrzebuję pomocy o tuż ten skrypt posiada błąd.

    Kod:
    Lua Script Error: [MoveEvents Interface]
    data/movements/scripts/swim.lua:onStepIn
    
    data/movements/scripts/swim.lua:47: attempt to call global 'doRemoveCondition' (a nil value)
    Taki komunikat się wyświetla w oknie silnika...

    a oto skrypt

    Kod:
    function onStepIn(cid, item, pos)
    beachpos = {x=pos.x, y=pos.y, z=pos.z, stackpos=253}
    getplayer = getThingfromPos(beachpos)
    outfit = {lookType=276,lookHead=0,lookAddons=0,lookLegs=0,lookBody=0,lookFeet=0}
    outfitTime = 9000000
    swimstorage = 33
    swimstatus = getPlayerStorageValue(cid,swimstorage)
    	if item.itemid == 8646 then
    		if swimstatus == -1 or swimstatus == 0 then
    		          npos = {x=pos.x-1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    		          doSendMagicEffect(npos, 46)
    			  doSetCreatureOutfit(cid, outfit, outfitTime)
    			  setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x+1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)	
    		end
    	elseif item.itemid == 8648 then
    		if swimstatus == -1 or swimstatus == 0 then
    		          npos = {x=pos.x+1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    		          doSendMagicEffect(npos, 46)
    			  doSetCreatureOutfit(cid, outfit, outfitTime)
    			  setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x-1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8645 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x, y=pos.y+1, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8647 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8652 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8650 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8649 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8651 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8653 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8654 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8655 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8656 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	end
    	return 1
    end
    aha i jeszcze czy dało by się dodać, że postać nie może się wylogować lub jeżeli się wyloguje to ją przenosi na plaże gdyż jak się postać wyloguje w basenie ma normalny wygląd a nie pływaka.
    http://ots.tibiaserver.pl/tibiaserver.gif

  2. #2
    Avatar Grim90
    Data rejestracji
    2007
    Położenie
    Toruń / Brzozówka
    Wiek
    34
    Posty
    586
    Siła reputacji
    17

    Domyślny

    Cytuj GM Esio napisał Pokaż post
    Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
    Witam,
    Potrzebuję pomocy o tuż ten skrypt posiada błąd.

    Kod:
    Lua Script Error: [MoveEvents Interface]
    data/movements/scripts/swim.lua:onStepIn
    
    data/movements/scripts/swim.lua:47: attempt to call global 'doRemoveCondition' (a nil value)
    Taki komunikat się wyświetla w oknie silnika...

    a oto skrypt

    Kod:
    function onStepIn(cid, item, pos)
    beachpos = {x=pos.x, y=pos.y, z=pos.z, stackpos=253}
    getplayer = getThingfromPos(beachpos)
    outfit = {lookType=276,lookHead=0,lookAddons=0,lookLegs=0,lookBody=0,lookFeet=0}
    outfitTime = 9000000
    swimstorage = 33
    swimstatus = getPlayerStorageValue(cid,swimstorage)
    	if item.itemid == 8646 then
    		if swimstatus == -1 or swimstatus == 0 then
    		          npos = {x=pos.x-1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    		          doSendMagicEffect(npos, 46)
    			  doSetCreatureOutfit(cid, outfit, outfitTime)
    			  setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x+1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)	
    		end
    	elseif item.itemid == 8648 then
    		if swimstatus == -1 or swimstatus == 0 then
    		          npos = {x=pos.x+1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    		          doSendMagicEffect(npos, 46)
    			  doSetCreatureOutfit(cid, outfit, outfitTime)
    			  setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x-1, y=pos.y, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8645 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    			  npos = {x=pos.x, y=pos.y+1, z=pos.z}
    		          doTeleportThing(getplayer.uid,npos)
    			  doRemoveCondition(cid, 6)
    			  setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8647 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8652 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8650 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8649 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8651 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8653 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8654 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8655 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x+1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x-1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	elseif item.itemid == 8656 then
    		if swimstatus == -1 or swimstatus == 0 then
    		         npos = {x=pos.x-1, y=pos.y-1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    		         doSendMagicEffect(npos, 46)
    			 doSetCreatureOutfit(cid, outfit, outfitTime)
    			 setPlayerStorageValue(cid,swimstorage,1)
    			  doRemoveCondition(cid, 2)
    		else
    		         npos = {x=pos.x+1, y=pos.y+1, z=pos.z}
    		         doTeleportThing(getplayer.uid,npos)
    			 doRemoveCondition(cid, 6)
    			 setPlayerStorageValue(cid,swimstorage,0)
    		end
    	end
    	return 1
    end
    aha i jeszcze czy dało by się dodać, że postać nie może się wylogować lub jeżeli się wyloguje to ją przenosi na plaże gdyż jak się postać wyloguje w basenie ma normalny wygląd a nie pływaka.
    Nie masz funkcji doRemoveCondition.
    Piszę skrypty do OTS. Chcesz mieć unikalny quest, lub skrypt na swoim serwerze? Pisz do mnie. Na pewno się dogadamy.
    Piszę skrypty PHP, strony oraz gotowe serwisy, jeśli jesteś zainteresowany, napisz.
    http://radeg.pl

    Masz facebooka? Zapraszamy do grupy: Grim OTS!
    http://www.facebook.com/?ref=logo#!/...07707075989449

  3. Reklama
Reklama

Informacje o temacie

Użytkownicy przeglądający temat

Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)

Podobne tematy

  1. Pływanie rozciąganie
    Przez Sinis w dziale Sport i zdrowie
    Odpowiedzi: 2
    Ostatni post: 24-02-2017, 01:07
  2. Pływanie
    Przez Remios w dziale Sport i zdrowie
    Odpowiedzi: 410
    Ostatni post: 05-11-2015, 15:55
  3. [Movements] Firewalker boots, działające jak na RL.
    Przez Mefix w dziale Skrypty i technika
    Odpowiedzi: 3
    Ostatni post: 23-10-2010, 15:44
  4. [8.0][Movements] Trap Room
    Przez konto usunięte w dziale Skrypty i technika
    Odpowiedzi: 56
    Ostatni post: 07-06-2009, 10:02

Zakładki

Zakładki

Zasady postowania

  • Nie możesz pisać nowych tematów
  • Nie możesz pisać postów
  • Nie możesz używać załączników
  • Nie możesz edytować swoich postów
  •