Autor Wiadomość
Sterhader54
PostWysłany: Śro 22:03, 25 Kwi 2007    Temat postu:

300 movie ticket omaha movie listing epic movie sound track home movie theater family movie review
epic movie preview yahoo india movie dvd movie ipod 3 movie shrek trailer kid movie review
leak movie transformer eragon movie review adult movie club bleach movie download cinemark movie listing
Ramza pL
PostWysłany: Sob 23:58, 18 Mar 2006    Temat postu: HIT!zmiana miejsca zamieszkania!HIT

NA otfans znalazlem wlasniie extra scrypt murowany hit

a mianowicie jesli masz 2 miatsa na mapie to gracz moze zmienic miesce temple i spawn poprzez klikniecie na Statue Oracle


BArdzo przydatna rzecz a tu jest scrypt

w data/actions/scripts tworzymy citizen.lua i wklejamy to

Kod:
-- Citizenship by Luxz
function onUse(cid, item, frompos, item2, topos)
forestpos = {x=100, y=104, z=7} -- temple respawn 1st city
desertpos = {x=226, y=102, z=7} -- temple respawn 2nd city
snowpos = {x=341, y=385, z=6} -- temple respawn 3rd city
junglepos = {x=537, y=343, z=6} -- temple respawn 4th city
playerpos = getPlayerPosition(cid)
if item.uid == 8000 then -- 1st city fountain uniqueid
doSendMagicEffect(playerpos,12)
doPlayerSetMasterPos(cid,forestpos)
doPlayerSendTextMessage(cid,22,"You have been blessed and now you are a citizen of this city.")
end
if item.uid == 8001 then -- 2nd city fountain uniqueid
doSendMagicEffect(playerpos,12)
doPlayerSetMasterPos(cid,desertpos)
doPlayerSendTextMessage(cid,22,"You have been blessed and now you are a citizen of this city.")
end
if item.uid == 8002 then -- 3rd city fountain uniqueid
doSendMagicEffect(playerpos,12)
doPlayerSetMasterPos(cid,snowpos)
doPlayerSendTextMessage(cid,22,"You have been blessed and now you are a citizen of this city.")
end
if item.uid == 8003 then -- 4th city fountain uniqueid
doSendMagicEffect(playerpos,12)
doPlayerSetMasterPos(cid,junglepos)
doPlayerSendTextMessage(cid,22,"You have been blessed and now you are a citizen of this city.")
end
return 1
end


zmieniamy wspolrzedne tylko na swoje temple swoich miast

teraz w actions/actions.xml

dodajemy te linijki

Kod:
<action uniqueid="8000" script="Citizen.lua" />
<action uniqueid="8001" script="Citizen.lua" />
<action uniqueid="8002" script="Citizen.lua" />
<action uniqueid="8003" script="Citizen.lua" />


Teraz na mapie ustawiamy gdzies w miescie Posag Oracle i dajemy uniqID odpowiednie ze wspolrzednymi w scrypcie

POWIODZENIA DZIALA NA 100% juz testowalem

Powered by phpBB © 2001,2002 phpBB Group