What's new

Inne [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Status
Not open for further replies.

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Siema. potrzebuje waszej pomocy:
1.Jak zrobi? quest gdzie z 6 nagrod wybiera sie tylko jedn?? Tak jak np Anni?
2.Jak zrobi? bramke lvl? W MRE
3. Jak zrobi? by przedmiot w tibii mozna by?o ulepszy? jaki? itemkiem do poziomu 18?
4. Jak doda? potworka do RME?
Dok?adnie to zrobi?em potworta. W monster.xml tez go dodalem, ale jak wchodze w MRE i wybieram FIle>Import>Monster i wybieram mego potworka pisze ?e nie mo?na otworzy? pliku, z?e rozszerzenie.
A tutaj m?j potworek(mo?e co? zrobi?em ?le):
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Babarata" nameDescription="a Babarata" race="UNDEAD" experience="4400" speed="800" manacost="0">
<health now="3000" max="3000"/>
<look type="12" head="20" body="44" legs="79" feet="75" corpse="5995"/>
<targetchange interval="2800" chance="5"/>
<strategy attack="80" defense="20"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="40"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-200" max="-430"/>
<attack name="manadrain" interval="3000" chance="50" range="7" min="-130" max="-250"/>
<attack name="fire" interval="2000" chance="5" range="7" radius="7" target="1" min="-300" max="-500">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="firefield" interval="1000" chance="25" range="7" radius="1" target="1">
<attribute key="shootEffect" value="fire"/>
</attack>
<attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-240" max="-460">
<attribute key="areaEffect" value="energy"/>
</attack>
</attacks>
<defenses armor="40" defense="35">
<defense name="healing" interval="1000" chance="15" min="100" max="155">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="25" speedchange="200" duration="20000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<elements>
<element firePercent="100"/>
<element physicalPercent="15"/>
<element earthpercent="20"/>
<element energyPercent="20"/>
<element deathPercent="-10"/>
<element icePercent="-25"/>
<element holyPercent="-20"/>
</elements>
<immunities>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="30">
<voice sentence="Babarata!!!!!" yell="1"/>
<voice sentence="Win!" yell="1"/>
<voice sentence="Chcki Chacki Chacki!" yell="1"/>
<voice sentence="I love your deatch!" yell="0"/>
</voices>
<loot>
<item id="2666" countmax="5" chance1="70000" chancemax="0"/>
<item id="2168" countmax="2" chance1="5000" chancemax="0"/>
<item id="6500" countmax="4" chance1="75000" chancemax="0"/>
<item id="6500" countmax="3" chance1="65000" chancemax="0"/>
<item id="1987" chance="100000">
<inside>
<item id="2463" chance="10000"/> <!--plate armor -->
<item id="8877" chance="400"/> <!--Lavos armor -->
<item id="2893" chance="99"/> <!--Lighing boots -->
<item id="2195" chance="5400"/> <!--BOH -->
<item id="7894" chance="4400"/> <!--magma legs -->
<item id="2470" chance="1400"/> <!--golden legs -->
<item id="2520" chance="700"/> <!--demon shield -->
<item id="2418" chance="1500"/> <!--golden sickle -->
<item id="7382" chance="1100"/> <!--demonrage sword -->
<item id="2377" chance="3333"/> <!--two-handed sword -->
</inside>
</item>
</loot>
</monster>
Czekam na odpowiedz:D moze pomozecie
 

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

1.Jak zrobi? quest gdzie z 6 nagrod wybiera sie tylko jedn?? Tak jak np Anni?
2.Jak zrobi? bramke lvl? W MRE
3. Jak zrobi? by przedmiot w tibii mozna by?o ulepszy? jaki? itemkiem do poziomu 18?
4. Jak doda? potworka do RME?

1. Skrypt actions - skopiuj z anni

2. Zmieniasz Actions ID, tak ?eby by?a 1 z przodu tzn. 1+level (np. 20 lvl = 1020, 230 lvl = 1230)

3. Poszukaj w necie, jest tego pe?no.
Np. http://tibia.net.pl/kosz-biblioteki/136223-items-upgrade-system.html

4. C:\Program Files\Remere's Map Editor\data - wybierasz wersje, otwierasz creatures.xml, dopisujesz na ko?cu linijk?, ze swoj? nazw? potworka.
 

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Dzi?ki zaraz sprawdze...
A co do 4. Moze niechce mi si? doda? bo w lock type wpisa?em byle jakie cyfry? gdzie sprawdzi? wszystkie te look type? np jakie jest do draga czy demca?

Ps. pkt 1. Jak skopiuje z anni to wtedy osoba bedzie mogla wybrac tylko jeden itemek z 2 questow, z mojego i z ani.
Tam jest jakies id, ale jak dodac nowe id?
 

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Do 4: dat editor/monsters.xml/sprawdzaj w grze poprzez '/newtype liczba'

Do 1: Zmie? storage, w skrypcie b?dzie pewnie:
Code:
doSetPlayerStorageValue(cid, CYFERKI, 1)
i
Code:
getPlayerStorageValue(cid, CYFERKI)

Zmie? 'cyferki' na inne. Ah i actions inne :)

@down
Przecie? napisa?, ?e mu to nie dzia?a.

Dude ... omfg
Co za r??nica, czy serwer XML, czy SQL? Looktype potworka b?dzie taki sam.
 
Last edited:

Skajowski

Senior User
Joined
Jun 11, 2010
Messages
1,160
Reaction score
90
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Punt 4 jest bardzo prosty. Wejd? w Rme --> File --> Import --> Monster/Npc --> Znajd? potwora i open !
Czy to takie trudne ? ;)

Prawdopodobnie masz co? z?ego w tym nowym potworku ,a co do outfitu potwora musisz powiedzie? jaki masz silnik sql czy xml.
 
Last edited:

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

@UP
Czytaj Uwa?nie

@Dantez
co do pkt 2 i 4
Nie sprawdze teraz czy dzia?a bo niemoge si?zalogowa? bo niemam bazy danych a dzisiaj ju? niemam czasu jej zainstalowa?.

pkt 3
Dzi?ki napewno to wykorzystam

Pkt1

Niebardzo rozumiem.
Mo?esz mi to przekszta?ci??

Anni
function onUse(cid, item, fromPosition, itemEx, toPosition)

-- Annihaltor by Maxi (Shawak) v1.0

local room = { -- room with demons
fromX = 1136,
fromY = 854,
fromZ = 10,
toX = 1141,
toY = 858,
toZ = 10
}

local monster_pos = {
[1] = {pos = {1137,856,10}},
[2] = {pos = {1136,856,10}},
[3] = {pos = {1138,854,10}},
[4] = {pos = {1140,854,10}},
[5] = {pos = {1139,858,10}},
[6] = {pos = {1141,858,10}}
}

local players_pos = {
{x = 1138,y = 856,z = 9,stackpos = 253},
{x = 1139,y = 856,z = 9,stackpos = 253},
{x = 1140,y = 856,z = 9,stackpos = 253},
{x = 1141,y = 856,z = 9,stackpos = 253}
}

local new_player_pos = {
{x=1138, y=856, z=10},
{x=1139, y=856, z=10},
{x=1140, y=856, z=10},
{x=1141, y=856, z=10}
}

local monster = "Demon"
local questLevel = 100


-- don't touch ------------
local player = {0, 0, 0, 0}
local all_ready = 0
---------------------------

local player1 = getThingfromPos(players_pos[1])
local player2 = getThingfromPos(players_pos[2])
local player3 = getThingfromPos(players_pos[3])
local player4 = getThingfromPos(players_pos[4])

if item.itemid == 1945 then
if player1.itemid > 0 and player2.itemid > 0 and player3.itemid > 0 and player4.itemid > 0 then
for i = 1, 4 do
player = getThingfromPos(players_pos)
if player.itemid > 0 then
all_ready = 1
end
end
else
doPlayerSendTextMessage(cid,19,"You need 4 players to do this quest.")
end
if all_ready == 1 then
for _, area in pairs(monster_pos) do
doSummonCreature(monster,{x=area.pos[1],y=area.pos[2],z=area.pos[3]})
end
for i = 1, 4 do
doSendMagicEffect(players_pos, CONST_ME_POFF)
doTeleportThing(player.uid, new_player_pos, FALSE)
doSendMagicEffect(new_player_pos, CONST_ME_ENERGYAREA)
all_ready = 0
end
doTransformItem(item.uid,1946)
end
elseif item.itemid == 1946 then
local player_room = 0
for x = room.fromX, room.toX do
for y = room.fromY, room.toY do
for z = room.fromZ, room.toZ do
local pos = {x=x, y=y, z=z,stackpos = 253}
local thing = getThingfromPos(pos)
if thing.itemid > 0 then
if isPlayer(thing.uid) == TRUE then
player_room = player_room+1
end
end
end
end
end
if player_room >= 1 then
doPlayerSendTextMessage(cid,19,"There is already a team in the quest room.")
elseif player_room == 0 then
for x = room.fromX, room.toX do
for y = room.fromY, room.toY do
for z = room.fromZ, room.toZ do
local pos = {x=x, y=y, z=z,stackpos = 253}
local thing = getThingfromPos(pos)
if thing.itemid > 0 then
doRemoveCreature(thing.uid)
end
end
end
end
player_room = 0
doTransformItem(item.uid,1945)
end
end
return TRUE
end


Actions
<action uniqueid="30015" event="script" value="quests/annihilator.lua"/>
 

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Nie ten skrypt, to jest d?wignia przed wej?ciem.
 

Skajowski

Senior User
Joined
Jun 11, 2010
Messages
1,160
Reaction score
90
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Mo?esz zrobi? nawet 6 osobnych quest?w o tym samym Storage
Np
elseif item.uid == 9001 then
queststatus = getPlayerStorageValue(cid, 9000)
if queststatus < 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Magic Sword.")
doPlayerAddItem(cid, 2400, 1)
doPlayerSetStorageValue(cid, 9000, 1)
A quest typu ani to ju? proste. ; )
 

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

sry zmyli?em si?... Ale nic innego z anni nie moge znale?? ; / w czym to szuka??

@Up
Czyli co? Proste tzn?
 

Skajowski

Senior User
Joined
Jun 11, 2010
Messages
1,160
Reaction score
90
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Moim zdaniem najlepiej zr?b 6 takich quest?w pozmieniaj Id item?w zostaw tylko Storage takie same w ka?dym !
Np.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1135 then
queststatus = getPlayerStorageValue(cid, 2354)
if queststatus < 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles 10cc.")
doPlayerAddItem(cid, 2160, 10)
doPlayerSetStorageValue(cid, 2354, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
end
end
return true
end
 

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

@emil
Ale nierozumiem gdzie to wkleic te liniki? poco 6 quest?w? a nie da si? w 1?
Sry ale zabardzo sie na tym jeszcze nieznam ;d
 

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Code:
<action actionid="9356;9357;9358" event="script" value="quest.lua"/>

Code:
local nagrody = {
[9356] = {reward=2160}, -- pierwsze to action id, drugie id nagrody
[9357] = {reward=2165),
[9358] = {reward=2169},
}

function onUse(cid, item, fromPosition, itemEx, toPosition)

	if (getPlayerStorageValue(cid, 99923) == 1) then
		doPlayerSendTextMessage(cid, 19, "You have already done this quest!")
	return false
	end
	
		doPlayerAddItem(cid, nagrody[item.actionid].reward, 1, false)
		doPlayerSetStorageValue(cid, 99923, 1)
		
return true
end

@down
Ja pierdole ...
 
Last edited:

Skajowski

Senior User
Joined
Jun 11, 2010
Messages
1,160
Reaction score
90
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Spr?buj tak ,tylko pozmieniaj Id item?w i message w actions ogarniesz linijki ?
Looknij i zkomentuj :p http://tibia.net.pl/showthread.php?p...89#post1407389
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if item.uid == 1991 then
                queststatus = getPlayerStorageValue(cid, 1252)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Demon Armor.")
                        doPlayerAddItem(cid, 2494, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
        elseif item.uid == 1992 then
                queststatus = getPlayerStorageValue(cid, 9000)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Magic Sword.")
                        doPlayerAddItem(cid, 2400, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
        elseif item.uid == 1993 then
                queststatus = getPlayerStorageValue(cid, 1252)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Stonecutter's Axe.")
                        doPlayerAddItem(cid, 2431, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
  elseif item.uid == 1994 then
                queststatus = getPlayerStorageValue(cid, 1252)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Stonecutter's Axe.")
                        doPlayerAddItem(cid, 2431, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
  elseif item.uid == 1995 then
                queststatus = getPlayerStorageValue(cid, 1252)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Stonecutter's Axe.")
                        doPlayerAddItem(cid, 2431, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
  elseif item.uid == 1996 then
                queststatus = getPlayerStorageValue(cid, 1252)
                if queststatus < 1 then
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Znalazles Stonecutter's Axe.")
                        doPlayerAddItem(cid, 2431, 1)
                        doPlayerSetStorageValue(cid, 1252, 1)
                else
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Puste.")
                end
    return true
end
end
Notka moderatorska:
U?ywaj
Code:
 [/mod]
 
Last edited by a moderator:

Skajowski

Senior User
Joined
Jun 11, 2010
Messages
1,160
Reaction score
90
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Pomog?o ?
Notka moderatorska:
u?ywaj opcji edytuj
 
Last edited by a moderator:

Dantez

Moim sekretem jest ciasto
Joined
May 22, 2008
Messages
1,206
Reaction score
202
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Ma?a poprawka za pro?b? na gg :)

Code:
local nagrody = {
[9356] = {reward=2160}, -- pierwsze to action id, drugie id nagrody
[9357] = {reward=2165),
[9358] = {reward=2169},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)

	if (getPlayerStorageValue(cid, 99923) == 1) then
		doPlayerSendTextMessage(cid, 19, "You have already done this quest!")
	return false
	end

		doPlayerAddItem(cid, nagrody[item.actionid].reward, 1, false)
		doPlayerSendTextMessage(cid, 19, "You have found "..getItemNameById(nagrody[item.actionid].reward)..".")
		doPlayerSetStorageValue(cid, 99923, 1)
return true
end
 

Xordex2

Active User
Joined
Sep 19, 2011
Messages
73
Reaction score
2
Odp: [pomoc][quest do wyboru][bramka lvl][ulepszanie][dodawanie potworkow][Inne]

Ok dzi?ki. Co do reszty jutro si?odezwe po zainstalowanbazych danych
 
Status
Not open for further replies.
Top