• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Outfit dla pojedynczych profesji

Status
Not open for further replies.

Slepy

New Member
Joined
May 14, 2009
Messages
111
Reaction score
1
chodzi mi o to czy ktos wie jak zrobic zeby np. Outfit Citizena, Mage byl tylko Dla Sorcererow? poprostu gdy ktos sie zaloguje Druidem nie bedzie mial w outfitach ani ubranka Citizena ani Mage;p
<?xml version="1.0" encoding="UTF-8"?>
<outfits>
<!-- Female outfits -->
<outfit type="0" looktype="136" enabled="1" name="Citizen" premium="0"/>
<outfit type="0" looktype="137" enabled="1" name="Hunter" premium="0"/>
<outfit type="0" looktype="138" enabled="1" name="Mage" premium="0"/>
<outfit type="0" looktype="139" enabled="1" name="Knight" premium="0"/>
<outfit type="0" looktype="140" enabled="1" name="Noblewoman" premium="1"/>
<outfit type="0" looktype="141" enabled="1" name="Summoner" premium="1"/>
<outfit type="0" looktype="142" enabled="1" name="Warrior" premium="1"/>
<outfit type="0" looktype="147" enabled="1" name="Barbarian" premium="1"/>
<outfit type="0" looktype="148" enabled="1" name="Druid" premium="1"/>
<outfit type="0" looktype="149" enabled="1" name="Wizard" premium="1"/>
<outfit type="0" looktype="150" enabled="1" name="Oriental" premium="1"/>
<outfit type="0" looktype="155" enabled="1" name="Pirate" premium="1"/>
<outfit type="0" looktype="156" enabled="1" name="Assassin" premium="1"/>
<outfit type="0" looktype="157" enabled="1" name="Beggar" premium="1"/>
<outfit type="0" looktype="158" enabled="1" name="Shaman" premium="1"/>
<outfit type="0" looktype="252" enabled="1" name="Norsewoman" premium="1"/>
<outfit type="0" looktype="269" enabled="1" name="Nightmare" premium="1"/>
<outfit type="0" looktype="270" enabled="1" name="Jester" premium="1"/>
<outfit type="0" looktype="279" enabled="1" name="Brotherhood" premium="1"/>
<outfit type="0" looktype="288" enabled="1" name="Demonhunter" premium="1"/>
<outfit type="0" looktype="324" enabled="1" name="Yalaharian" premium="1"/>

<!-- Male outfits -->
<outfit type="1" looktype="128" enabled="1" name="Citizen" premium="0"/>
<outfit type="1" looktype="129" enabled="1" name="Hunter" premium="0"/>
<outfit type="1" looktype="130" enabled="1" name="Mage" premium="0"/>
<outfit type="1" looktype="131" enabled="1" name="Knight" premium="0"/>
<outfit type="1" looktype="132" enabled="1" name="Nobleman" premium="1"/>
<outfit type="1" looktype="133" enabled="1" name="Summoner" premium="1"/>
<outfit type="1" looktype="134" enabled="1" name="Warrior" premium="1"/>
<outfit type="1" looktype="143" enabled="1" name="Barbarian" premium="1"/>
<outfit type="1" looktype="144" enabled="1" name="Druid" premium="1"/>
<outfit type="1" looktype="145" enabled="1" name="Wizard" premium="1"/>
<outfit type="1" looktype="146" enabled="1" name="Oriental" premium="1"/>
<outfit type="1" looktype="151" enabled="1" name="Pirate" premium="1"/>
<outfit type="1" looktype="152" enabled="1" name="Assassin" premium="1"/>
<outfit type="1" looktype="153" enabled="1" name="Beggar" premium="1"/>
<outfit type="1" looktype="154" enabled="1" name="Shaman" premium="1"/>
<outfit type="1" looktype="251" enabled="1" name="Norseman" premium="1"/>
<outfit type="1" looktype="268" enabled="1" name="Nightmare" premium="1"/>
<outfit type="1" looktype="273" enabled="1" name="Jester" premium="1"/>
<outfit type="1" looktype="278" enabled="1" name="Brotherhood" premium="1"/>
<outfit type="1" looktype="289" enabled="1" name="Demonhunter" premium="1"/>
<outfit type="1" looktype="325" enabled="1" name="Yalaharian" premium="1"/>

<!-- Custom outfits -->
<outfit type="2" looktype="12" enabled="1" name="Archdemon" premium="1" quest="30015"/>
<outfit type="2" looktype="159" enabled="1" name="Elf" premium="1"/>
<outfit type="2" looktype="160" enabled="1" name="Dwarf" premium="1"/>
<outfit type="2" looktype="226" enabled="1" name="Frog" premium="1"/>
<outfit type="2" looktype="194" enabled="1" name="Cult" premium="1"/>
<outfit type="2" looktype="253" enabled="1" name="Headsplitter" premium="1"/>
<outfit type="2" looktype="254" enabled="1" name="Skullhunter" premium="1"/>
<outfit type="2" looktype="255" enabled="1" name="Bloodwalker" premium="1"/>
<outfit type="2" looktype="264" enabled="1" name="Brutetamer" premium="1"/>

<!-- Group outfits -->
<outfit type="0;1;2" looktype="75" enabled="1" name="GM Outfit" access="3"/>
<outfit type="0;1;2" looktype="266" enabled="1" name="CM Outfit" access="4"/>
<outfit type="0;1;2" looktype="302" enabled="1" name="God" access="5"/>
</outfits>
 
a kto by mi cos takiego zrobil za 10 zl doladowanie?
i wytlumaczyl jak to potem dodac do silnika
 
Wystarczy że np ustawisz
<outfit type="xxx" looktype="136" enabled="1" name="Citizen" premium="0"/>
i w accmangerze przy robieniu postaci przy np Sorcerer "type" xxx

XXX to jakiś numer np 5
 
dzieki ale to nic nie da bo wtedy bedziesz mial ubranie tego citizena ale bedziesz mogl w kazdej chwili zmienic na inny

jak to wkompilowac?
outfits.cpp
Code:

if(readXMLString(listNode, "vocation", intValue))
outfit.vocation = intValue;

player.cpp
Code:

if(it->second.vocation != getVocationId())
return false;
 
Last edited:
jest jakis poradnik jak edytowac silnik?

robie ot na rasy i poprostu potrzebuje w change outfit zrobic tak Zeby Orc mial tylko 3 outfity Orka Elf mial tylko 3 outfity Elfa. A jak tego nie zrobie to bedziesz gral elfem a bedziesz mogl sobie dac outfit Orka
 
Last edited:
Olej edytowanie silnika, da się to zrobić w creaturescripts.
Prosty skrypt, który ustawia jakiś storage dla odpowiedniej profesji po 1 zalogowaniu, następnie dopisek quest="storage_Id" na końcu i jazda.
 
<outfit type="0" looktype="136" enabled="1" name="Citizen" premium="0" quest="12345"/>
onLogin(cid)
if voc == ork then setStorage(cid, 12345, 1)
ale nie wiem gdzie w login to dodac;/
albo moze ktos wie gdzie w bazie danych do postaci dopisac storage ze jak juz stworzysz postac to masz to Storage?
 
Wydaje mi się że możesz dodać aby przypisywało storage w firstitems wtedy po zrobieniu postaci bedziesz miał automatycznie ustawiane storage do profesji.
 
w xml bylo by to latwiejsze poprostu otworzyl bym plik acc makera i dodal storage do kazdego;p
 
Last edited:
Mój sposób działa ponieważ gdy ustawisz type większe od zwykłego tylko na jednego addonu i do postaci to wtedy postać ma do wyboru tylko ten jeden addon
Wystarczy że np ustawisz
<outfit type="xxx" looktype="136" enabled="1" name="Citizen" premium="0"/>
i w accmangerze przy robieniu postaci przy np Sorcerer "type" xxx

XXX to jakiś numer np 5

Chodzi ci oto żeby np srocerer mógł używać tylko Citizen addon ? jeśli tak to zrób tak jak mówię

NP :

<outfit type="5" looktype="136" enabled="1" name="Citizen" premium="0"/>
<outfit type="6" looktype="137" enabled="1" name="Hunter" premium="0"/>
<outfit type="7" looktype="138" enabled="1" name="Mage" premium="0"/>
<outfit type="8" looktype="139" enabled="1" name="Knight" premium="0"/>
W postaciach w accmangerze ustawiasz każdej profesji inne type :
np
Sorcerer type="5"
Druid type="6"
Paladin type="7"
Knight type="8"
I każda postać będzie mogła wybrać tylko ten jeden addon
 
Last edited:
doczytales do konca czy ci sie nie chce? chce zeby sorcerer uzywal Cotizen i Mage dla male i female
i nie mial oprocz tych ubranek zadnych wiec to nie zadziala bo jak dodam pare tak ubranek to male i female bedzie miec 1 postac


Cotizen i Mage! DLA SORCERER I MUSI BYC MALE I FEMALE JAK ZMIENIE 0 i 1 to juz nie bedzie ustawialo sie na male i female!


Ok mam Tyle:
<outfit type="0" looktype="136" enabled="1" name="Citizen" premium="0" quest="12345"/>
i to ale niewiem gdzie co wkleic zeby dzialalo:
local ropa = {
[1] = {1234},
[2] = {2345},
[3] = {3456},
[4] = {4578}
}

function onLogin(cid)
local vocacion = getPlayerVocation(cid)
for voc, storage in ipairs(ropa) do
if vocacion == voc then
setPlayerStorageValue(cid, storage[1], 1)
end
return true
end
 
Last edited:
doczytales do konca czy ci sie nie chce? chce zeby sorcerer uzywal Cotizen i Mage dla male i female
i nie mial oprocz tych ubranek zadnych wiec to nie zadziala bo jak dodam pare tak ubranek to male i female bedzie miec 1 postac


Cotizen i Mage! DLA SORCERER I MUSI BYC MALE I FEMALE JAK ZMIENIE 0 i 1 to juz nie bedzie ustawialo sie na male i female!


Ok mam Tyle:

i to ale niewiem gdzie co wkleic zeby dzialalo:

1. creaturescripts/scripts/nazwapliku.lua
2. dodać event onLogin do creaturescripts/creaturescripts.xml
3. dodac zarejestrowanie eventu w creaturescripts/scripts/login.lua
 
1. creaturescripts/scripts/nazwapliku.lua
2. dodać event onLogin do creaturescripts/creaturescripts.xml
3. dodac zarejestrowanie eventu w creaturescripts/scripts/login.lua


1. Plik Mam PlayerOutfit
2. registerCreatureEvent(cid, "PlayerOutfit")
3. <event type="playeroutfit" name="PlayerOutfit" event="script" value="playeroutfit.lua"/>
Dobrze? bo mi nie dziala nie chce wczytac tego pliku
 
Skoro nie działa to nie za dobrze.

Powiedz jaki błąd Ci wywala podczas wczytywania i pokaż ten plik playeroutfit.lua
 
[26/01/2010 19:05:51] [Error - CreatureEvent::configureEvent] No valid type for creature event.playeroutfit
[26/01/2010 19:05:51] [Warning - BaseEvents::loadFromXml] Cannot configure event
to mi wyskakuje
 
THX :p nie zauwazylem tego ale jak zmienilem na login to brakowalo mi 1 enda na koncu all dziala dzieki mozna zamknac temacik
 
Status
Not open for further replies.
Back
Top