|
You last visited: Today at 18:46
Advertisement
[help] disable automatic rest on pets
Discussion on [help] disable automatic rest on pets within the Mabinogi forum part of the MMORPGs category.
11/22/2009, 21:11
|
#1
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
[help] disable automatic rest on pets
so yeah as the title says. ive noticed when your pet is auto attacking if you use rest the pet does too. is there any way to disable that? any file i could edit or some ****?
|
|
|
11/22/2009, 21:17
|
#2
|
elite*gold: 0
Join Date: Nov 2008
Posts: 3,695
Received Thanks: 891
|
Change the AI. ._.
|
|
|
11/22/2009, 21:21
|
#3
|
elite*gold: 0
Join Date: Oct 2009
Posts: 89
Received Thanks: 22
|
Take one of the stock AI's like Command Mode, copy it, and edit out the "rest when master uses rest" rule.
|
|
|
11/22/2009, 21:31
|
#4
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
<aidescdata>
<template>
<imports>
<import file="data/db/ai/local/common_pet.xml" />
</imports>
<var_decl>
<var name="visualfield_radius" default="600" />
<var name="audio_range" default="400" />
</var_decl>
<sensor visualfield_radius="%visualfield_radius" visualfield_angle="90" audio_range="%audio_range" />
<!--
펫이 올바르게 작동하기 위해서는 다음 속성들이 수정되어서는 안됩니다.
- return_to_startpoint : false면 ai가 시작지점으로 돌아가려 시도하지 않음
- auto_respawn : false면 죽어도 리스폰을 요청하지 않음
- target_type : 반드시 "always"이어야 함
- support_type : 반드시 "none"이어야 함
-->
<character return_to_startpoint="false" auto_respawn="false" target_type="always" support_type="none">
<!--race stringid="*/wolf/*" type="hate" / -->
</character>
<patterns>
<pattern name="wander">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@master_movestate == 0">
<then>
<!-- 애교 모션 -->
<if condition="expr" expr="@random > 0.5">
<then>
<cmd name="set_emotion" target="1" index="1" />
<cmd name="wait" min="15000" max="20000" />
</then>
<else>
<cmd name="set_emotion" target="1" index="0" />
<cmd name="wait" min="3000" max="5000" />
</else>
</if>
<if condition="expr" expr="15>@food">
<!-- 배고프면 밥달라고 함 -->
<then>
<cmd name="follow" distance="150" run="false" continue="false" timeout="5000" />
<cmd name="wait" min="2000" max="3000" />
</then>
<!-- 배가 안고플 경우 -->
<else>
<if condition="expr" expr="@is_usable_skill(10004) and @random>0.5">
<then>
<cmd name="skill_relax" on="true" />
<cmd name="wait" min="7000" max="10000" />
<cmd name="skill_relax" on="false" />
<cmd name="wait" min="3000" max="5000" />
</then>
</if>
<if condition="expr" expr="@random>0.5">
<then>
<cmd name="move_random" radius="400" run="false" timeout="3000" />
</then>
</if>
<cmd name="wait" min="4000" max="7000" />
</else>
</if>
</then>
<else>
<if condition="expr" expr="@master_movestate == 1">
<then>
<cmd name="follow_target" target="1" distance="200" run="false" continue="false" timeout="5000" />
</then>
<else>
<cmd name="follow_target" target="1" distance="200" run="true" continue="false" timeout="5000" />
</else>
</if>
</else>
</if>
</sequence>
</pattern>
<pattern name="command:cute_trick">
<param_decl>
</param_decl>
<sequence>
<cmd name="chase" target="1" />
<cmd name="set_emotion" target="1" index="1" />
<cmd name="wait" min="15000" max="20000" />
</sequence>
</pattern>
<pattern name="command:sitdown">
<param_decl>
</param_decl>
<sequence>
<cmd name="skill_relax" on="true" />
<cmd name="stop" />
</sequence>
</pattern>
<pattern name="command:standup">
<param_decl>
</param_decl>
<sequence>
<cmd name="skill_relax" on="false" />
</sequence>
</pattern>
<pattern name="command:defense">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(20001) and @stamina>4">
<then>
<cmd name="prepare_skill" skill_id="20001" try_cnt="3" />
<cmd name="wait" min="10000" max="10000" />
<cmd name="cancel_skill" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.21]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:smash">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(20002) and @stamina>8">
<then>
<cmd name="prepare_skill" skill_id="20002" try_cnt="3" />
<cmd name="melee_attack" combo="1" timeout="6000" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.22]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:counter">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(20003) and @stamina>5">
<then>
<cmd name="prepare_skill" skill_id="20003" try_cnt="3" />
<cmd name="wait" min="10000" max="10000" />
<cmd name="cancel_skill" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.23]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:call">
<param_decl>
</param_decl>
<sequence>
<cmd name="say_to_all" text="_LT[xml.ai_local.24]" />
<cmd name="wait" min="500" max="1000" />
<cmd name="chase" target="1" />
</sequence>
</pattern>
<pattern name="command:firebolt">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(30201)">
<then>
<cmd name="stackmagic_attack" skill_id="30201" charge="1" timeout="10000" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.25]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:icebolt">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(30301)">
<then>
<cmd name="stackmagic_attack" skill_id="30301" charge="5" timeout="10000" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.26]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:lightningbolt">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(30101)">
<then>
<cmd name="stackmagic_attack" skill_id="30101" charge="1" timeout="10000" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.27]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:healing">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_usable_skill(30006) and @mana>20">
<then>
<cmd name="chase" target="1" />
<cmd name="prepare_skill" skill_id="30006" try_cnt="3" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.184]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="command:first_aid">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@is_preparable_skill(10009)">
<then>
<cmd name="chase" target="1" />
<cmd name="prepare_skill" skill_id="10009" try_cnt="3" />
<cmd name="process_skill" target="5" />
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.185]" />
</else>
</if>
</sequence>
</pattern>
<pattern name="attack">
<param_decl>
</param_decl>
<sequence>
<if condition="expr" expr="@stamina>8">
<!--암것도 못할 상황이 아니라면 전투 -->
<then>
<cmd name="melee_attack" combo="3" timeout="4000" />
<switch type="random">
<case rate="17">
<!--공격 -->
<cmd name="melee_attack" combo="3" timeout="4000" />
<!--공격 후 공격 or 마법 -->
<switch type="random">
<case rate="30">
<!--마법을 쓰는 경우-->
<if condition="expr" expr="@is_usable_skill(30201) and @mana>10">
<then>
<cmd name="move_against" distance="700" run="true" timeout="3000" />
<cmd name="stackmagic_attack" skill_id="30201" charge="1" timeout="10000" />
</then>
</if>
</case>
<case rate="10">
<!--후속타 -->
<cmd name="melee_attack" combo="3" timeout="3000" />
</case>
<case rate="15">
<!--디펜스 걸고 후퇴-->
<cmd name="prepare_skill" skill_id="20001" />
<!-- 방어 -->
<cmd name="move_against" distance="500" run="false" timeout="3000" />
<cmd name="cancel_skill" />
</case>
<case rate="30">
<!--달려서 후퇴-->
<cmd name="move_against" distance="500" run="true" timeout="2000" />
</case>
</switch>
</case>
<case rate="30">
<!-- 마법 -->
<if condition="expr" expr="@is_usable_skill(30201) and @mana>10">
<then>
<cmd name="move_against" distance="700" run="true" timeout="3000" />
<cmd name="stackmagic_attack" skill_id="30201" charge="1" timeout="10000" />
</then>
</if>
</case>
<case rate="8">
<cmd name="prepare_skill" skill_id="20002" />
<!-- 스매시 -->
<cmd name="melee_attack" combo="1" timeout="4000" />
</case>
<case rate="10">
<!-- 디펜스 -->
<cmd name="prepare_skill" skill_id="20001" />
<if condition="expr" expr="0.5>@life/@life_max">
<!--생명력이 절반 남았으면 물러난다-->
<then>
<cmd name="move_against" distance="600" run="true" timeout="5000" />
</then>
<else>
<!--만만하면 주위를 돈다 -->
<switch type="random">
<case rate="50">
<cmd name="move_around" radius="400" clockwise="true" run="false" timeout="2000" />
</case>
<case rate="50">
<cmd name="move_around" radius="400" clockwise="false" run="false" timeout="2000" />
</case>
</switch>
</else>
</if>
<cmd name="cancel_skill" />
</case>
<case rate="30">
<!-- 이동 -->
<switch type="random">
<case rate="30">
<cmd name="move_around" radius="400" clockwise="true" run="true" timeout="2000" />
</case>
<case rate="30">
<cmd name="move_around" radius="400" clockwise="false" run="true" timeout="2000" />
</case>
<case rate="20">
<cmd name="follow" distance="400" run="true" timeout="2000" />
</case>
<case rate="20">
<cmd name="move_against" distance="500" run="true" timeout="1000" />
</case>
</switch>
</case>
<case rate="5">
<!-- 카운터 -->
<cmd name="prepare_skill" skill_id="20003" />
<cmd name="wait" min="1000" max="10000" />
<cmd name="cancel_skill" />
</case>
</switch>
</then>
<else>
<cmd name="say_to_all" text="_LT[xml.ai_local.29]" />
<cmd name="move_around" radius="600" clockwise="true|false|" run="true|false|" timeout="3000" />
</else>
</if>
</sequence>
</pattern>
<pattern name="support">
<param_decl>
</param_decl>
<sequence>
<!-- 힐링 -->
<if condition="expr" expr="@is_usable_skill(30006) and @mana>20 and 0.9>@master_life/@master_life_max">
<then>
<cmd name="prepare_skill" skill_id="30006" try_cnt="3" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
<cmd name="process_skill" target="5" />
<cmd name="wait" min="800" max="800" />
</then>
</if>
<cmd name="wait" min="1000" max="1000" />
</sequence>
</pattern>
<pattern name="event_defence_success">
<param_decl>
<param name="delay" />
</param_decl>
<sequence>
<cmd name="melee_attack" combo="3" />
</sequence>
</pattern>
<pattern name="event_blowhit">
<param_decl>
<param name="delay" />
</param_decl>
<sequence>
<switch type="random">
<case rate="60">
<if condition="expr" expr="@is_usable_skill(20003)">
<then>
<!-- 카운터 -->
<cmd name="prepare_skill" skill_id="20003" />
<cmd name="wait" min="1000" max="10000" />
<cmd name="cancel_skill" />
</then>
</if>
</case>
<case rate="40">
<!-- 디펜스 -->
<cmd name="prepare_skill" skill_id="20001" />
<switch type="random">
<case rate="60">
<cmd name="move_around" radius="400|500|" clockwise="true|false|" run="false" timeout="5000" />
</case>
<case rate="40">
<cmd name="follow" distance="400" run="false" timeout="4000" />
</case>
</switch>
<cmd name="cancel_skill" />
<if condition="random" rate="50">
<then>
<cmd name="move_around" radius="800" clockwise="true" run="false" timeout="5000" />
</then>
<else>
<cmd name="melee_attack" combo="3" timeout="5000" />
</else>
</if>
</case>
</switch>
</sequence>
</pattern>
</patterns>
<strategy>
<!-- 주인과 max_radius거리만큼 멀어지면 follow_radius거리안으로 주인에게 다가감 -->
<idle type="idle_pet" max_radius="500" follow_radius="100">
<pattern name="wander" />
<pattern id="attack" name="attack" radius="400" />
<pattern id="support" name="support" radius="500" />
<pattern id="submission" name="submission" />
<event name="blowhit">
<pattern name="event_blowhit" delay="0" />
</event>
<event name="defence">
<pattern name="event_defence_success" delay="0" />
</event>
</idle>
</strategy>
</template>
<definition race="aidescdata_pet_horse">
<var_def>
<var name="visualfield_radius" value="800" />
<var name="audio_range" value="800" />
</var_def>
</definition>
</aidescdata>
Thats the code for the horse AI. i understand most of it. you can say how many times you want them to charge ice or fire and shit. but nowhere do i see master and rest together. i suck at coding by the way, but i cant find the rest thing. and if i were to look for it in another ai like infamy said where do i paste it?
EDIT: looked in the stock ai's none of them have that rule you were talkin about. matter of fact the command one has 3 rules and 2 of them are counter-related. i am lost someone help! D:
|
|
|
11/23/2009, 01:11
|
#5
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
*bump* help me D:
|
|
|
11/23/2009, 15:09
|
#6
|
elite*gold: 0
Join Date: Aug 2009
Posts: 382
Received Thanks: 74
|
I'll help....
Learn XML, it's very easy.
|
|
|
11/23/2009, 17:23
|
#7
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
i know xml. i just cant find what infamy is talkin about. and i dont know the mabi pet commands so i cant just make em out of scratch. i doubt this is that hard but i would appreciate some help i mean i know it can be done. and by the way please dont tell me your "help" was telling me to learn xml. i know this has been done by people before all i want is to know how. im not gonna go look at countless xml tutorials just to make a pet not sit down. i doubt its THAT complex
|
|
|
11/23/2009, 18:17
|
#8
|
elite*gold: 0
Join Date: Oct 2009
Posts: 89
Received Thanks: 22
|
Code:
<if condition="expr" expr="@is_usable_skill(10004) and @random>0.5">
<then>
<cmd name="skill_relax" on="true" />
<cmd name="wait" min="7000" max="10000" />
<cmd name="skill_relax" on="false" />
<cmd name="wait" min="3000" max="5000" />
</then>
</if>
this part is where the pet will randomly sit by themselves. I also do not see what you're looking for.
Why would you want to enable such a thing anyways?
|
|
|
11/23/2009, 19:07
|
#9
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
when i use fire barrage AI on my pet it would be nice to use rest and have the pet keep using fire instead of using rest too. it has to be in there somewhere i mean i doubt that its serversided to make pets rest when you do
EDIT: i tried just taking that entire piece out. ill test it when i get back from school. hopefully that does it
|
|
|
11/23/2009, 20:53
|
#10
|
elite*gold: 0
Join Date: Oct 2009
Posts: 89
Received Thanks: 22
|
^why would you want to your rest when your pet is spamming low-rank firebolt? e.o
|
|
|
11/23/2009, 21:39
|
#11
|
elite*gold: 0
Join Date: May 2009
Posts: 855
Received Thanks: 149
|
1) to regen stam
2) to regen mana
3) to regen hp
4) to watch it in peace (wolves dont aggro you if you sit)
|
|
|
11/24/2009, 03:34
|
#12
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
exactly. and should the mood strike i can make the pet camp someone while i sit on them to prove i do not fear them by laying my dong on their sword. but mostly i want it to regenerate mana ^^
|
|
|
11/24/2009, 04:24
|
#13
|
elite*gold: 0
Join Date: Oct 2009
Posts: 89
Received Thanks: 22
|
Resting doesn't help regen mana ._.;
|
|
|
11/24/2009, 04:39
|
#14
|
elite*gold: 0
Join Date: Jul 2009
Posts: 387
Received Thanks: 37
|
yeah but it makes me feel like it does
plus the time i spent sitting is time spent NOT wasting mana. so in a way it DOES help regen mana lololol
|
|
|
11/24/2009, 05:36
|
#15
|
elite*gold: 0
Join Date: Oct 2009
Posts: 109
Received Thanks: 14
|
EDIT: didnt realize there was a page 2 =S
|
|
|
|
Similar Threads
|
[Demon pets Online] Newest database, God Maps, Customs, New Pets, Check us Out.
07/17/2010 - EO PServer Hosting - 15 Replies
http://i45.tinypic.com/2j26zio.png
Server Rates:
• Exp Rate: Mediun
• Drop Gold: Medium
• Drop 2700 card: Medium
• Drop 270 card: Medium
• Drop Bags: Medium
|
[HELP]MY PETS BECOME ANOTHER PETS AFTER USE THUNDER JUICE
06/28/2010 - EO PServer Hosting - 18 Replies
HELLO
please help me i am using db revo i am having this problems when i use thunder juice to my pets when i click evolve it turn into anopther pets how to solve this please..i already use louise fix thunder but nothing ahppened:handsdown::handsdown::handsdown::handsdow n::handsdown:
|
WTS Rare Pets and Basic Pets on Lydian
02/11/2010 - Rappelz Trading - 5 Replies
I am selling all my pets i have in game at the server of Lydian.
full ob Angel and Kenta
low lvl Naga
low lvl Harpy , Hawk and Sala
I am selling the Pets only for CASH !
I can show screenshots or i can show you the pets in Game too !
Dont accept trading or ppl who gave me offer and pm me back in more then 7 days again !
|
[HELP] pets disappear , pets name , skills , others
01/30/2009 - EO PServer Hosting - 9 Replies
hi guyz hope u can help me with those
1 - someone in my server pet's has disappear from warehouse and inventory and knights table , but they still exist in the leg totem , and cq_eudemon , i've checked the owner_id and stuff all correct whats wrong ?
2 - pets in my server have Chinese names or smthn strange how can i make them English back again ?
3 - i know that i've asked this thing maaaaaaaaaaaany times , but so far no answer can somone plz tell me how to fix or at least tell me...
|
New Way to Dupe Pets / Call out Multiple Pets
04/21/2006 - General Gaming Discussion - 0 Replies
*TESTCENTER*do this before the blue frog disappears and stops giving out mounts/vehicles.
1. go to to the blue frog, go to vehicles/mounts.
2. pick ur mount, it will come out
3. wait till it disappears
4. once it disappears call it out, and mount it
|
All times are GMT +2. The time now is 18:46.
|
|