Reklama
Pokazuje wyniki od 1 do 4 z 4

Temat: [8.54] TFS Crus helmet quest.

  1. #1
    Avatar Demonolog
    Data rejestracji
    2008
    Posty
    73
    Siła reputacji
    16

    Domyślny [8.54] TFS Crus helmet quest.

    Coś zmaściłem ze skryptem, bo w grze zamiast crusa pisze "you have found skeleton.." i dodaje mi do plecaka zwłoki szkieleta ^^.

    Kod:
     function onUse(cid, item, frompos, item2, topos)
    
    local config = {
            storage = 1000, -- change to your own storage value :)
            item = 2497, 
    		
    
    }
    
            if getPlayerStorageValue(cid, config.storage) == -1 then
            
    
            if getPlayerlevel(cid, config.level) =>35 then
                   setPlayerStorageValue(cid, config.storage, 1)
    				doPlayerSendTextMessage(cid,25,"You have found a crusader helmet.")
                    key = doPlayerAddItem(cid, config.item, 1) ~= -1
            else
                    doPlayerSendTextMessage(cid,25,"Sorry, you have already taken the gift..")
                    end
            return TRUE
    end
    http://forum.tibia.org.pl/showthread.php?t=366038
    - Moja mapa :), zapraszam do oglądania..

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

    Domyślny

    Cytuj Demonolog napisał Pokaż post
    Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
    Coś zmaściłem ze skryptem, bo w grze zamiast crusa pisze "you have found skeleton.." i dodaje mi do plecaka zwłoki szkieleta ^^.

    Kod:
     function onUse(cid, item, frompos, item2, topos)
    
    local config = {
            storage = 1000, -- change to your own storage value :)
            item = 2497, 
    		
    
    }
    
            if getPlayerStorageValue(cid, config.storage) == -1 then
            
    
            if getPlayerlevel(cid, config.level) =>35 then
                   setPlayerStorageValue(cid, config.storage, 1)
    				doPlayerSendTextMessage(cid,25,"You have found a crusader helmet.")
                    key = doPlayerAddItem(cid, config.item, 1) ~= -1
            else
                    doPlayerSendTextMessage(cid,25,"Sorry, you have already taken the gift..")
                    end
            return TRUE
    end
    Kod:
    function onUse(cid, item, frompos, item2, topos)
    
    	local config = 
    	{
    		storage = 1000,
    		item = 2497
    	}
    
    	if getPlayerStorageValue(cid, config.storage) == -1 then
    		setPlayerStorageValue(cid, config.storage, 1)
    		doPlayerSendTextMessage(cid,25,"You have found a crusader helmet.")
    		doPlayerAddItem(cid, config.item, 1)
    	else
    		doPlayerSendTextMessage(cid,25,"Sorry, you have already taken the gift..")
    	end
            return TRUE
    end
    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
  4. #3
    Avatar Demonolog
    Data rejestracji
    2008
    Posty
    73
    Siła reputacji
    16

    Domyślny

    Ok, ale to jest skrypt bez levela, nie da się zrobić żeby można było to otworzyć na danym lvlu dopiero :)?
    http://forum.tibia.org.pl/showthread.php?t=366038
    - Moja mapa :), zapraszam do oglądania..

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

    Domyślny

    Cytuj Demonolog napisał Pokaż post
    Cytat został ukryty, ponieważ ignorujesz tego użytkownika. Pokaż cytat.
    Ok, ale to jest skrypt bez levela, nie da się zrobić żeby można było to otworzyć na danym lvlu dopiero :)?
    No u ciebie też się nie dało, ponieważ config.level nie istniał.

    Przerobiłem to na lvl:

    Kod PHP:
    function onUse(cid, item, frompos, item2, topos)
    
    	local config = 
    	{
    		storage = 1000,
    		item = 2497,
    		level = 30
    	}
    	if getPlayerLevel(cid) < config.level then
    		doPlayerSendCancel(cid, "Your level is too low to get this reward.")
    		return false
    	end
    	if getPlayerStorageValue(cid, config.storage) == -1 then
    		setPlayerStorageValue(cid, config.storage, 1)
    		doPlayerSendTextMessage(cid,25,"You have found a crusader helmet.")
    		doPlayerAddItem(cid, config.item, 1)
    	else
    		doPlayerSendTextMessage(cid,25,"Sorry, you have already taken the gift..")
    	end
            return TRUE
    end
    Ostatnio zmieniony przez Grim90 : 06-07-2010, 02:19
    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

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. In Service on Yalahar + Demon Helmet / Zaoan Helmet?
    Przez MietekGnojownik w dziale Tibia
    Odpowiedzi: 7
    Ostatni post: 07-11-2011, 19:15
  2. [TFS]Kaspersky blokuje TFS'a
    Przez Sargeras w dziale Strefa developerska
    Odpowiedzi: 0
    Ostatni post: 01-08-2010, 12:57
  3. Crusader Helmet Quest
    Przez Hunterius w dziale Tibia
    Odpowiedzi: 15
    Ostatni post: 25-07-2008, 21:59
  4. Winged Helmet quest . C.d>>
    Przez darioos w dziale Tibia
    Odpowiedzi: 89
    Ostatni post: 23-05-2008, 11:50
  5. Winged helmet quest - niemal kompletny spoiler
    Przez Avarion w dziale Tibia
    Odpowiedzi: 511
    Ostatni post: 11-05-2007, 17:36

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
  •