GanGrel 5.6

zielony9999

User
Zarejestrowany
Dołączył
Styczeń 31, 2009
Posty
10
Liczba reakcji
0
Witam Mam Kilka Bug?w Kt?re Chcialbym Naprawic Ale Niewiem jak:
1.Ustawic Poczantkowe EQ Jakie Sie Dostaje Na Start.
2.Naprawienie Aby Po ?mierci Z Aolem Aby Aol Znika? Z Szyi.
3.Naprawienie Areny , Aby Jak Zabije Przyk?adowo Webstera Ded Nie Znikal Bo Musze Deda Po?o?yc Na Kratke Aby M?c Walczyc Z 2 Potworem Areny.
Prosze O Pomoc.
Przepraszam Za Orto Z C Ale Niemoge Zrobic ?.
Pozdrawiam.
 
Odp: GanGrel 5.6

1. Logujesz si? na Sample i dajesz mu EQ.
2. Nie wiem.
3. Musisz zmieni? ID ded tego potwora.
 
Odp: GanGrel 5.6

1 creaturescript/script/firstitems.lua tam podajesz id itemow jakie ma dostac dany gracz przy pierszym logu
2 szukasz pliku ITEMS.xml otwiersz naciskasz ctrl + f i wpisujesz "2173" usuwasz to :
Kod:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
a wklejasz to
Kod:
<item id="2173" article="an" name="amulet of loss">
		<attribute key="weight" value="420"/>
		<attribute key="slotType" value="necklace"/>
		<attribute key="preventLoss" value="1"/>
3 Wiec tak .../data/actions/scripts otwierasz obojetnie jaki plik (lua) usuwasz wszystko i wklejasz to:
Kod:
-- arena1
function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 9400 then
   		queststatus = getPlayerStorageValue(cid,5011)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Orcish Maul.")
   			doPlayerAddItem(cid,7392,1)
   			setPlayerStorageValue(cid,5011,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9401 then
   		queststatus = getPlayerStorageValue(cid,5011)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Headchopper.")
   			doPlayerAddItem(cid,7380,1)
   			setPlayerStorageValue(cid,5011,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9402 then
   		queststatus = getPlayerStorageValue(cid,5011)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Blacksteel sword.")
   			doPlayerAddItem(cid,7406,1)
   			setPlayerStorageValue(cid,5011,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end
i zapisujesz jako arena1.lua
pozniej otwierasz znow plik i wklejasz to
Kod:
-- arena2

function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 9300 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Cranial Basher.")
   			doPlayerAddItem(cid,7415,1)
   			setPlayerStorageValue(cid,5010,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9301 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Heroic Axe.")
   			doPlayerAddItem(cid,7389,1)
   			setPlayerStorageValue(cid,5010,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9302 then
   		queststatus = getPlayerStorageValue(cid,5010)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Mystic Blade.")
   			doPlayerAddItem(cid,7384,1)
   			setPlayerStorageValue(cid,5010,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end
zapisujesz jako arena2.lua

i pozniej kolejny raz
Kod:
-- arena3

function onUse(cid, item, frompos, item2, topos)

   	if item.uid == 9200 then
   		queststatus = getPlayerStorageValue(cid,5012)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Blessed Sceptre.")
   			doPlayerAddItem(cid,7429,1)
   			setPlayerStorageValue(cid,5012,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9201 then
   		queststatus = getPlayerStorageValue(cid,5012)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Royal Axe.")
   			doPlayerAddItem(cid,7434,1)
   			setPlayerStorageValue(cid,5012,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
   	elseif item.uid == 9202 then
   		queststatus = getPlayerStorageValue(cid,5012)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a Justice Seeker.")
   			doPlayerAddItem(cid,7390,1)
   			setPlayerStorageValue(cid,5012,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")
   		end
	else
		return 0
   	end

   	return 1
end
zapisujesz jako arena3.luai teraz ostatni raz
Kod:
function onUse(cid, item, frompos, item2, topos)

local doorstatus = getPlayerStorageValue(cid,5029)
local doorlevel = item2.actionid - 8019


    
    emptyRoom = true
    charPos = getPlayerPosition(cid)
           
    if item.itemid == 5130 then
        if (charPos.x > frompos.x) then
            othersidePos = {x=frompos.x-1, y=frompos.y, z=frompos.z}
        else
            othersidePos = {x=frompos.x+1, y=frompos.y, z=frompos.z, stackpos=253}
            things = getThingfromPos(othersidePos)
            if (things.itemid == 1) then
                if (getPlayerLevel(things.uid) > 0) then
                end
            end
        end
        

    end
    
     if doorstatus == doorlevel then
        doTeleportThing(cid, othersidePos)
        doSendMagicEffect(charPos, 2)
        doSendMagicEffect(frompos, 12)
        doSendMagicEffect(othersidePos, 10)
        
    else
        doPlayerSendTextMessage(cid, 22, "Nie ten pokoj.")
    end


    return 1
end
i to zapisujesz jako arenadrzwi.lua

teraz bierzesz Wstecz i otwierasz plik actions.xml i wklejasz to najlepiej na samym dole
Kod:
<!-- Sva Arena -->
<action actionid="8020" script="arenadzwi.lua" /> 
<action actionid="8021" script="arenadzwi.lua" /> 
<action actionid="8022" script="arenadzwi.lua" /> 

<action uniqueid="9400" script="arena1.lua" />
<action uniqueid="9401" script="arena1.lua" />
<action uniqueid="9402" script="arena1.lua" />

<action uniqueid="9300" script="arena2.lua" />
<action uniqueid="9301" script="arena2.lua" />
<action uniqueid="9302" script="arena2.lua" />

<action uniqueid="9200" script="arena3.lua" />
<action uniqueid="9201" script="arena3.lua" />
<action uniqueid="9202" script="arena3.lua" />
skrypty zaciagniete z mojego ots :) pozdro
 
Ostatnia edycja:
Back
Do góry