Openkore.com

OpenKore Forums
It is currently 19 Nov 2018, 04:59

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 426 posts ]  Go to page Previous  1 ... 39, 40, 41, 42, 43  Next
Author Message
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 08:12 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 48
hakore wrote:
This is discussed one page earlier, and also on the first topic you replied to.

Instructions for the plugin is on the first page.

Please try it and come back here if there are problems.

The problem i am running into with the block you created to bypass the Do you want to move NPC is the fact that you first have to press talk cont then talk resp0, how exactly do you set it to do 2 steps in one block?


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 08:27 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 218
Solution 1: autoTalkCont 1 (config.txt)

Solution 2: Create another reactOnNPC block for "talk cont" with the same msg_x but with "type continue". Note that reactOnNPC works in such a way that it triggers for every conversation step. You just have to configure it properly. See "type".

_________________
Whatever...


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 17:47 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 48
Autotalkcont messes up some of my job change macros so im looking to avoid using that.

reactOnNPC talk cont {
type continue
msg_0 /Do\s+you\s+want\s+to\s+move\?/
inMap
}

reactOnNPC talk resp @resp(/Yes/) {
type responses
msg_0 /Do\s+you\s+want\s+to\s+move\?/
inMap
}

This still only triggers the talk cont and then sits there waiting for a response.


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 26 Aug 2017, 22:45 
Offline
Super Moderators
Super Moderators
User avatar

Joined: 16 May 2008, 08:28
Posts: 218
I would have to check the source, but can't do so until after 2 days as I'm away from my pc. It needs to be adjusted if it can't catch spontaneous talk events.

Easiest way probably is to pair it with a macro. Call the macro from within reactOnNPC whose type is continue. Macro will then talk cont, pause then talk resp.

Although I'm sure chaining commands using ;; will work just as fine and I think it also has a pause command similar to macros.

Code:
reactOnNPC talk cont;;pause;;talk resp @resp(/Yes/) {


I'm just not sure about the exact syntax of pause, if someone else can verify, please.

_________________
Whatever...


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 28 Aug 2017, 02:24 
Offline
Human
Human

Joined: 11 Jul 2017, 00:49
Posts: 48
reactOnNPC macro transfernpc {
type continue
msg_0 Do you want to move?
inMap
}

macro transfernpc {
do talk cont
pause 3
do talk resp 0
}


I assume you mean use it like this? They took the npc down so i can't test it.


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 12 Nov 2018, 18:20 
Offline
Noob
Noob

Joined: 08 Oct 2018, 15:54
Posts: 6
Hi, i seems to having problem determining addition and subtraction for my code.

Console log
Quote:
Code:
You are now: state: Frozen
Welcome to Rise Ragnarok! Enjoy! Please report any bugs you find.
Map Change: morocc.gat (157, 92)
You have new unread rodex mails.
Packet Parser: Unknown switch: 097B
Unknown #110065841: [ Anti BOT System ]
[reactOnNPC] NPC message saved (0): "[ Anti BOT System ]".
Unknown #110065841: If A = 87   B = 3
[reactOnNPC] NPC message saved (1): "If A = 87   B = 3".
Unknown #110065841: How many is A + B ?
[reactOnNPC] NPC message saved (2): "How many is A + B ?".
[reactOnNPC] onNPCAction type is: number.
[reactOnNPC] Conditions for reactOnNPC_0 (npc:number , rect:number) is met.
[reactOnNPC] Matching [msg (0)] [color=#0000FF]"[ Anti BOT System ]" to "/[ Anti BOT System ]/" ... regexp ok.
[reactOnNPC] Matching [msg (1)] "If A = 87   B = 3" to "/If A = (\d+)\s+B = (\d+)/" ... regexp ok.
[reactOnNPC] Matching [msg (2)] "How many is A + B ?" to "/How many is A (.) B ?/" ... regexp ok.
[reactOnNPC] React to NPC with delay. Execute command "talk num 87" after 5 seconds.[/color]
itself: Type 'talk num <number #>' to input a number.
[reactOnNPC] Reacting to NPC. Executing command "talk num 87".
Unknown #110065841: ------------------------
[reactOnNPC] NPC message saved (0): "------------------------".
Unknown #110065841: Wrong
[reactOnNPC] NPC message saved (1): "Wrong".
Incoming data left in the buffer:


my reactOnNPC code
Code:
reactOnNPC_debug 1
reactOnNPC talk num @eval(#0~1 #1~1 #0~2) {
type number
useColors 1
delay 5
msg_0 /[ Anti BOT System ]/
msg_1 /If A = (\d+)\s+B = (\d+)/
msg_2 /How many is A (.) B ?/
}


it register/matching well but it seems i failed at the most important step, the math it self.Any help is much appericiated.


Top
 Profile  
 
 Post subject: The plugin is loaded but not working at all
PostPosted: 14 Nov 2018, 02:02 
Offline
Human
Human

Joined: 02 Aug 2009, 13:00
Posts: 21
I have download the plugin and put it into plugins folder
and put
reactOnNPC_debug 1
in config.txt

also used plugin load all to make sure the plugin is loaded


plugin load all
Selectively loading plugins...
读取插件 plugins/breakTime/breakTime.pl...
读取插件 plugins/eventMacro/eventMacro.pl...
读取插件 plugins/item_weight_recorder/item_weight_recorder.pl...
读取插件 plugins/macro/macro.pl...
读取插件 plugins/map/map.pl...
读取插件 plugins/raiseSkill/raiseSkill.pl...
读取插件 plugins/raiseStat/raiseStat.pl...
读取插件 plugins/reactOnNPC/reactOnNPC.pl...
读取插件 plugins/reconnect/reconnect.pl...
读取插件 plugins/xConf/xConf.pl...



I checked my console it seems I did well
-------------------------- Currently loaded plugins ---------------------------
# Name Description
0 breakTime Automatically disconnect and reconnect at certain time
2 item_weight_recorder item_weight_recorder plugin
3 macro allows usage of macros
4 map map
5 profiles Profiles Selector
6 raiseSkill automatically raise character skills
7 raiseStat automatically raise character stats
8 reactOnNPC react on NPC messages
9 reconnect v1.0
10 xConf commands for change items_control, mon_control, pickup
-------------------------------------------------------------------------------

but I don't get color code from npc debug messages at all, I think the plugin is probably not working, the console message is listing below
the translation and problem will follow after #

Unknown #110026458: [ 验证提示 ] :
Unknown #110026458: 你已经累积打怪数量达到[5002]只,根据规定现在开始进行验证!! #you have killed 5002 mobs, now we need to start verify
Unknown #110026458: 总共有[3]次机会进行验证,现在进行第[1]次验证!! #you have 3 chances, now this is NO [1] verify
: 输入 'talk cont' 继续对话 # enter talk cont to continue the conversation
Unknown #110026458: 请输入此颜色的一组验证码!! #please enter the captcha number of this color <This is the problem, the plugin doesn't feed me the color code>
Unknown #110026458: 验证码:[ 2498 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 8291 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 4836 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 3225 ] #captcha number, plugin doesn't feedback the color code
itself: 输入 'talk num <nomer #>' 指定对话内容. #use talk num to continue


I tried to manually edit the src/network/receive.pm file
to disable the (# Remove RO color codes) code
line 5301
# $response =~ s/\^[a-fA-F0-9]{6}//g;
but still I don't get color code from the NPC conversation


here is server txt
[CCro]
ip 111.231.54.127
port 6900
master_version 4
version 55
serverType kRO
private 1
recvpackets recvpackets.txt
serverType kRO_RagexeRE_2017_05_17a
serverEncoding GBK
charBlockSize 147
chatLangCode 1
addTableFolders kRO


the screenshot of the game client for the verification
https://gyazo.com/00073060b69516e3939e85271925e7e1


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 14 Nov 2018, 02:52 
Offline
OpenKore Monk
OpenKore Monk
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 466
Location: Genting Highland, Malaysia
luocongo wrote:
I have download the plugin and put it into plugins folder
and put
reactOnNPC_debug 1
in config.txt

also used plugin load all to make sure the plugin is loaded


plugin load all
Selectively loading plugins...
读取插件 plugins/breakTime/breakTime.pl...
读取插件 plugins/eventMacro/eventMacro.pl...
读取插件 plugins/item_weight_recorder/item_weight_recorder.pl...
读取插件 plugins/macro/macro.pl...
读取插件 plugins/map/map.pl...
读取插件 plugins/raiseSkill/raiseSkill.pl...
读取插件 plugins/raiseStat/raiseStat.pl...
读取插件 plugins/reactOnNPC/reactOnNPC.pl...
读取插件 plugins/reconnect/reconnect.pl...
读取插件 plugins/xConf/xConf.pl...



I checked my console it seems I did well
-------------------------- Currently loaded plugins ---------------------------
# Name Description
0 breakTime Automatically disconnect and reconnect at certain time
2 item_weight_recorder item_weight_recorder plugin
3 macro allows usage of macros
4 map map
5 profiles Profiles Selector
6 raiseSkill automatically raise character skills
7 raiseStat automatically raise character stats
8 reactOnNPC react on NPC messages
9 reconnect v1.0
10 xConf commands for change items_control, mon_control, pickup
-------------------------------------------------------------------------------

but I don't get color code from npc debug messages at all, I think the plugin is probably not working, the console message is listing below
the translation and problem will follow after #

Unknown #110026458: [ 验证提示 ] :
Unknown #110026458: 你已经累积打怪数量达到[5002]只,根据规定现在开始进行验证!! #you have killed 5002 mobs, now we need to start verify
Unknown #110026458: 总共有[3]次机会进行验证,现在进行第[1]次验证!! #you have 3 chances, now this is NO [1] verify
: 输入 'talk cont' 继续对话 # enter talk cont to continue the conversation
Unknown #110026458: 请输入此颜色的一组验证码!! #please enter the captcha number of this color <This is the problem, the plugin doesn't feed me the color code>
Unknown #110026458: 验证码:[ 2498 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 8291 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 4836 ] #captcha number, plugin doesn't feedback the color code
Unknown #110026458: 验证码:[ 3225 ] #captcha number, plugin doesn't feedback the color code
itself: 输入 'talk num <nomer #>' 指定对话内容. #use talk num to continue


I tried to manually edit the src/network/receive.pm file
to disable the (# Remove RO color codes) code
line 5301
# $response =~ s/\^[a-fA-F0-9]{6}//g;
but still I don't get color code from the NPC conversation


here is server txt
[CCro]
ip 111.231.54.127
port 6900
master_version 4
version 55
serverType kRO
private 1
recvpackets recvpackets.txt
serverType kRO_RagexeRE_2017_05_17a
serverEncoding GBK
charBlockSize 147
chatLangCode 1
addTableFolders kRO


You need to enable plugin first.
Enable them in control/sys.txt

Code:
# loadPlugins_list <list>
#   if loadPlugins is set to 2, this comma-separated list of plugin names (filename without the extension)
#   specifies which plugin files to load at startup or when the "plugin load all" command is used.
loadPlugins_list macro,profiles,breakTime,raiseStat,raiseSkill,map,reconnect,eventMacro,item_weight_recorder,xconf,reactOnNPC

_________________

I'll not give answer. I'll just showing you the way to find it
Wiki & Google are your best allies. If you're lazy to read I won't bother answering
Image


Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 15 Nov 2018, 12:09 
Offline
Human
Human

Joined: 02 Aug 2009, 13:00
Posts: 21
[/quote]You need to enable plugin first.
Enable them in control/sys.txt

Code:
# loadPlugins_list <list>
#   if loadPlugins is set to 2, this comma-separated list of plugin names (filename without the extension)
#   specifies which plugin files to load at startup or when the "plugin load all" command is used.
loadPlugins_list macro,profiles,breakTime,raiseStat,raiseSkill,map,reconnect,eventMacro,item_weight_recorder,xconf,reactOnNPC
[/quote]


yes I have done that, but still not working, the plugin doesn't return color codes

this is my full config file, I have done everything I know

Code:
# Please Read the Users Manual
# The Manual is located at http://wiki.openkore.com/index.php?title=Manual

######## Login options and server-specific options ########

master CCro
server 0
username
password
loginPinCode
char 1

# Poseidon Settings (http://wiki.openkore.com/index.php/PoseidonServer)
# They must be the same as Query Server config in Poseidon.txt
poseidonServer 127.0.0.1
poseidonPort 24390

bindIp
forceMapIP

# 1 = hook into RO client, 2 = Act as stand-alone proxy, proxy = act as true proxy
# http://wiki.openkore.com/index.php/XKore
XKore 0
XKore_port 2350
XKore_dll NetRedirect.dll
XKore_autoAttachIfOneExe 1
XKore_silent 1
XKore_bypassBotDetection 0
XKore_exeName ragexe.exe

# XKore 2 / Proxy configuration
XKore_listenIp 127.0.0.1
XKore_listenPort 6901
XKore_publicIp 127.0.0.1
XKore_ID

# It is not advised to set secureAdminPassword if you're using Xkore 2
secureAdminPassword 1
adminPassword nanoshiz
callSign
commandPrefix ;
callSignGM 0
inGameAuth 0

pauseCharServer 0
pauseMapServer 0
ignoreInvalidLogin 0
secureLogin_requestCode

# Opening cash shop when connected to map server (recv/ST0)
whenInGame_requestCashPoints 0

message_length_max 80


######## Main configuration ########

alias_heal sp 28

allowedMaps
allowedMaps_reaction 1

attackAuto 2
attackAuto_party 1
attackAuto_onlyWhenSafe 0
attackAuto_followTarget 1
attackAuto_inLockOnly 1
attackAuto_notInTown 1
attackDistance 2
attackDistanceAuto 1
attackMaxDistance 2
attackMaxRouteDistance 100
attackMaxRouteTime 4
attackMinPlayerDistance 2
attackMinPortalDistance 4
attackUseWeapon 0
attackNoGiveup 0
attackCanSnipe 0
attackCheckLOS 0
attackLooters 0
attackChangeTarget 1
aggressiveAntiKS 0

autoMoveOnDeath 0
autoMoveOnDeath_x
autoMoveOnDeath_y
autoMoveOnDeath_map

attackEquip_topHead
attackEquip_midHead
attackEquip_lowHead
attackEquip_leftHand
attackEquip_rightHand
attackEquip_leftAccessory
attackEquip_rightAccessory
attackEquip_robe
attackEquip_armor
attackEquip_shoes
attackEquip_arrow


reactOnNPC_debug 1

#You need the breakTime plugin: http://wiki.openkore.com/index.php?title=BreakTime
autoBreakTime {
   startTime
   stopTime
}

autoConfChange {
   minTime
   varTime
   lvl
   joblvl
}

autoMakeArrows 0

autoRestart 0

autoRestartMin 10800
autoRestartSeed 3600

autoRestartSleep 1
autoSleepMin 900
autoSleepSeed 900

autoResponse 0
autoResponseOnHeal 0

autoSpell
autoSpell_safe

avoidGM_namePattern
avoidGM_near 0
avoidGM_near_inTown 0
avoidGM_talk 0
avoidGM_reconnect 1800
avoidGM_ignoreList

avoidList 1
avoidList_inLockOnly 0
avoidList_reconnect 1800

cachePlayerNames 1
cachePlayerNames_duration 900
cachePlayerNames_maxSize 100

clientSight 20

dcPause 1
dcOnDeath 0
dcOnDualLogin 0
dcOnDisconnect 0
dcOnEmptyArrow 0
dcOnMaxReconnections 0
dcOnMute 0
dcOnPM 0
dcOnZeny 0
dcOnStorageFull 0
dcOnPlayer 0
dcOnServerShutDown 0
dcOnServerClose 0
dcOnJobLevel
dcOnLevel

follow 0
followCheckLOS 0
followTarget
followEmotion 1
followEmotion_distance 4
followFaceDirection 0
followDistanceMax 6
followDistanceMin 3
followLostStep 12
followSitAuto 0
followBot 0
followRandom 0
followRandomDistance 4

itemsTakeAuto 2
itemsTakeAuto_party 0
itemsGatherAuto 2
itemsMaxWeight 89
itemsMaxWeight_sellOrStore 89
itemsMaxNum_sellOrStore 89
cartMaxWeight 7900
itemsTakeAuto_new 0
itemsTakeGreed 0
itemsCheckWeight 1

#lockMap bossnia_02
lockMap moro_vol
lockMap_x
lockMap_y
lockMap_randX
lockMap_randY

route_escape_reachedNoPortal 1
route_escape_randomWalk 1
route_escape_shout
route_avoidWalls 1
route_randomWalk 0
route_randomWalk_inTown 0
route_randomWalk_maxRouteTime 75
route_maxWarpFee
route_maxNpcTries 5
route_teleport 0
route_teleport_minDistance 150
route_teleport_maxTries 8
route_teleport_notInMaps
route_step 15
route_removeMissingPortals_NPC 1
route_removeMissingPortals 0
route_tryToGuessMissingPortalByDistance 1
route_reAddMissingPortals 1

runFromTarget 0
runFromTarget_dist 6

saveMap prontera
saveMap_warpToBuyOrSell 1
saveMap_warpChatCommand
memo1
memo2
memo3
memo4

shopAuto_open 0
shop_random 0
shop_useSkill 1

buyerShopAuto_open 0
buyerShop_random 0

sitAuto_hp_lower 40
sitAuto_hp_upper 70
sitAuto_sp_lower 0
sitAuto_sp_upper 0
sitAuto_follow 0
sitAuto_over_50 0
sitAuto_idle 0
sitAuto_look
sitAuto_look_from_wall
sitTensionRelax 0

statsAddAuto 0
statsAddAuto_list
statsAddAuto_dontUseBonus 0
statsAdd_over_99 1

skillsAddAuto 0
skillsAddAuto_list

tankMode 0
tankModeTarget

teleportAuto_hp 10
teleportAuto_sp 0
teleportAuto_idle 1
teleportAuto_portal 0
teleportAuto_search 0
teleportAuto_minAggressives 0
teleportAuto_minAggressivesInLock 0
teleportAuto_onlyWhenSafe 0
teleportAuto_maxDmg 500
teleportAuto_maxDmgInLock 0
teleportAuto_deadly 1
teleportAuto_useSkill 1
teleportAuto_useChatCommand
teleportAuto_allPlayers 0
teleportAuto_notPlayers
teleportAuto_atkCount 0
teleportAuto_atkMiss 10
teleportAuto_unstuck 0
teleportAuto_lostTarget 0
teleportAuto_dropTarget 1
teleportAuto_dropTargetKS 0
teleportAuto_attackedWhenSitting 0
teleportAuto_totalDmg 0
teleportAuto_totalDmgInLock 0
teleportAuto_equip_leftAccessory
teleportAuto_equip_rightAccessory
teleportAuto_lostHomunculus
teleportAuto_useItemForRespawn
teleportAuto_item1
teleportAuto_item2

dealAuto 1
dealAuto_names
partyAuto 1
partyAutoShare 0
partyAutoShareItem 0
partyAutoShareItemDiv 0
guildAutoDeny 1

verbose 1
showDomain 0
showDomain_NPC parseMsg_presence
showDomain_Shop list
squelchDomains attacked,attackMon,drop,skill,selfSkill,storage,useItem,attackedMiss
verboseDomains
beepDomains
beepDomains_notInTown
friendlyAID
showTime
showTimeDomains
showTimeDomainsFormat
wx_map_maxAutoSize 300
wx_map_monsterSticking 1
wx_map_npcSticking 1
wx_map_playersSticking 1
wx_map_portalSticking 5
wx_map_route
wx_npcTalk 1
wx_captcha 1
showAllDamage 0
manualURL http://wiki.openkore.com/index.php?title=Manual
forumURL http://forums.openkore.com

logChat 1
logPrivateChat 1
logPartyChat 1
logGuildChat 1
logSystemChat 1
logShop 1
logEmoticons
logConsole 1
logAppendUsername 1
logAppendServer 0
monsterLog 0
logDead 1

chatTitleOversize 0
shopTitleOversize 0
buyerShopTitleOversize 0

sleepTime 50000

ignoreAll 0
itemHistory 0
autoTalkCont 1
noAutoSkill 0
portalCompile 1
portalRecord 2
missDamage 0

tankersList

repairAuto 0
repairAuto_list

status_mapProperty 0
status_mapType 0

removeActorWithDistance
monster_filter

######## Mercenary Support ########

mercenary_attackAuto 2
mercenary_attackAuto_party 1
mercenary_attackAuto_notInTown 1
mercenary_attackAuto_onlyWhenSafe 0
mercenary_attackDistance 1.5
mercenary_attackMaxDistance 2.5
mercenary_attackMaxRouteTime 4
mercenary_attackCanSnipe 0
mercenary_attackCheckLOS 0
mercenary_attackNoGiveup 0
mercenary_attackChangeTarget 1

mercenary_followDistanceMax 10
mercenary_followDistanceMin 3

mercenary_route_step 15

mercenary_tankMode 0
mercenary_tankModeTarget

mercenary_teleportAuto_hp 10
mercenary_teleportAuto_maxDmg 500
mercenary_teleportAuto_maxDmgInLock 0
mercenary_teleportAuto_deadly 1
mercenary_teleportAuto_unstuck 0
mercenary_teleportAuto_dropTarget 0
mercenary_teleportAuto_dropTargetKS 0
mercenary_teleportAuto_totalDmg 0
mercenary_teleportAuto_totalDmgInLock 0
mercenary_teleportAuto_attackedWhenSitting 0

######## Homunculus Support ########

homunculus_attackAuto 2
homunculus_attackAuto_party 1
homunculus_attackAuto_notInTown 1
homunculus_attackAuto_onlyWhenSafe 0
homunculus_attackDistance 1.5
homunculus_attackMaxDistance 2.5
homunculus_attackMaxRouteTime 4
homunculus_attackCanSnipe 0
homunculus_attackCheckLOS 0
homunculus_attackNoGiveup 0
homunculus_attackChangeTarget 1

homunculus_followDistanceMax 10
homunculus_followDistanceMin 3

homunculus_route_step 15

homunculus_tankMode 0
homunculus_tankModeTarget

homunculus_runFromTarget 0
homunculus_runFromTarget_dist 6

homunculus_StandByAuto 0
homunculus_teleportAuto_hp 10
homunculus_teleportAuto_maxDmg 500
homunculus_teleportAuto_maxDmgInLock 0
homunculus_teleportAuto_deadly 1
homunculus_teleportAuto_unstuck 0
homunculus_teleportAuto_dropTarget 0
homunculus_teleportAuto_dropTargetKS 0
homunculus_teleportAuto_totalDmg 0
homunculus_teleportAuto_totalDmgInLock 0
homunculus_teleportAuto_attackedWhenSitting 0

# Turn on/off homunculus autofeeding
homunculus_autoFeed 1
# Feed homunculus when meet the hunger value (homunculus_hunger > homunculus_return)
homunculus_hunger 15
# Return homunculus when meet the hunger value
homunculus_return 11
# In Wich maps should we allow feeding? (leave empty for any map)
homunculus_autoFeedAllowedMaps

# Turn on/off pet autofeeding
pet_autoFeed 1
# Feed pet when meet the hunger value
pet_hunger 25
# Return pet when meet the hunger value
pet_return 20

######## Block options ########
# You can copy & paste any block multiple times. So if you want to
# configure two attack skills, just duplicate the attackSkillSlot block.

attackSkillSlot {
   lvl 10
   dist 1.5
   maxCastTime 0
   minCastTime 0
   hp
   sp > 10
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   previousDamage
   stopWhenHit 0
   inLockOnly 0
   notInTown 0
   timeout 0
   disabled 0
   monsters
   notMonsters
   monstersCount
   maxAttempts 0
   maxUses 0
   target_hp
   target_whenStatusActive
   target_whenStatusInactive
   target_deltaHp
   inInventory
   isSelfSkill 0
   equip_topHead
   equip_midHead
   equip_lowHead
   equip_leftHand
   equip_rightHand
   equip_leftAccessory
   equip_rightAccessory
   equip_robe
   equip_armor
   equip_shoes
   equip_arrow
   manualAI 0
}

attackComboSlot {
   afterSkill
   waitBeforeUse
   dist 1.5
   isSelfSkill 1
   target_hp
   target_deltaHp
   monsters
   notMonsters
   monstersCount
}

doCommand {
   hp
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   monsters
   notMonsters
   monstersCount
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout
   disabled 0
   inInventory
   inCart
   inMap
   manualAI 0
}

doCommand c @autoloot {
   timeout 99999999999999
}

attackSkillSlot Frost Misty {
   lvl 5
   dist 3
   timeout 0
   notInTown 1
   monsters 新人装备怪,蛇女伊丝,狂暴野猫
   isSelfSkill 1
   maxAttempts 1
}
attackSkillSlot Storm Gust {
   lvl 10
   aggressives > 3
}



useSelf_item Chocolate Pie {
#—————————————————————————使用的道具名称
   hp < 80%
}
useSelf_item Chocolate Pie {
#—————————————————————————使用的道具名称
   sp < 30%
}

buyAuto Chocolate Pie {
#—————————————————————————自动购买的道具(例如buyAuto 红色药水 {)
   npc prontera 146 107
#—————————————————————————道具NPC的地图、坐标
   npc_steps r0 r0
#—————————————————————————开启购买的对话顺序(一般留空)
   standpoint
#—————————————————————————走到固定坐标再购买,一般留空(例如standpoint prontera 140 80)
   distance 10
#—————————————————————————NPC对话的最远距离
   minAmount 10
#—————————————————————————此道具低于这个数量的时候开始购买
   maxAmount 100
#—————————————————————————购买道具的时候,身上买够N个才停止
   disabled 0
#—————————————————————————禁用此模块(0不禁用,1禁用)
}

buyAuto Fly Wing {
#—————————————————————————自动购买的道具(例如buyAuto 红色药水 {)
   npc prontera 146 107
#—————————————————————————道具NPC的地图、坐标
   npc_steps r0 r0
#—————————————————————————开启购买的对话顺序(一般留空)
   standpoint
#—————————————————————————走到固定坐标再购买,一般留空(例如standpoint prontera 140 80)
   distance 10
#—————————————————————————NPC对话的最远距离
   minAmount 20
#—————————————————————————此道具低于这个数量的时候开始购买
   maxAmount 200
#—————————————————————————购买道具的时候,身上买够N个才停止
   disabled 0
#—————————————————————————禁用此模块(0不禁用,1禁用)
}

useSelf_skill {
   lvl 10
   maxCastTime 0
   minCastTime 0
   hp
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   monsters
   notMonsters
   monstersCount
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout 0
   disabled 0
   inInventory
   manualAI 0
}

useSelf_skill_smartHeal 1

partySkillDistance 0..8

partySkill {
   lvl 10
   dist 3
   maxCastTime 0
   minCastTime 0
   hp
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   monsters
   notMonsters
   monstersCount
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout 0
   disabled 0
   manualAI 0
   target
   target_hp
   target_isJob
   target_isNotJob
   target_whenStatusActive
   target_whenStatusInactive
   target_aggressives
   target_monsters
   target_timeout 0
   target_deltaHp
   target_dead 0
   inInventory
   isSelfSkill 0
}

monsterSkill {
   target
   maxUses
   # Skill Use Conditions, including isSelfSkill
   # Self Conditions
   # Target Monster Conditions
}

autoSwitch_default_rightHand
autoSwitch_default_leftHand
autoSwitch_default_arrow

# NOTE: In the case of two handed weapons, or no Shield,
#       duplicate the weapon name for 'rightHand'
# To attack with bare hands, specify "[NONE]" (without the quotes) for rightHand

autoSwitch {
   rightHand
   leftHand
   arrow
   distance
   useWeapon
}

equipAuto {
   topHead
   midHead
   lowHead
   leftHand
   rightHand
   leftAccessory
   rightAccessory
   robe
   armor
   shoes
   arrow
   monsters
   notMonsters
   monstersCount
   weight 0
   whileSitting 0
   hp
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout 0
   disabled 0
   inInventory
   manualAI 0
}

useSelf_item {
   hp
   sp
   homunculus_hp
   homunculus_sp
   homunculus_dead
   onAction
   whenStatusActive
   whenStatusInactive
   whenFollowing
   spirit
   amuletType
   aggressives
   monsters
   notMonsters
   monstersCount
   stopWhenHit 0
   inLockOnly 0
   notWhileSitting 0
   notInTown 0
   timeout
   disabled 0
   inInventory
   manualAI 0
}

######## Autostorage/autosell ########

buyAuto {
   npc
   standpoint
   distance 5
   price
   minAmount 2
   maxAmount 3
   batchSize
   disabled 0
}

sellAuto 1
sellAuto_npc prontera 146 107
sellAuto_standpoint
sellAuto_distance 10
sellAuto_npc_steps r3 s

storageAuto 1
storageAuto_npc prontera 146 89 r1
storageAuto_standpoint
storageAuto_distance 7
storageAuto_npc_type 1
storageAuto_npc_steps
storageAuto_password
#storageEncryptKey 0x050B6F79, 0x0202C179, 0x0E20120, 0x04FA43E3, 0x0179B6C8, 0x05973DF2, 0x07D8D6B, 0x08CB9ED9
storageAuto_keepOpen 0
storageAuto_useChatCommand
storageAuto_useItem 0
storageAuto_useItem_item
storageAuto_notAfterDeath
relogAfterStorage 0
minStorageZeny 50

npcTimeResponse
npcWrongStepsMethod 0

getAuto {
   minAmount
   maxAmount
   passive
   disabled 0
}

######## Debugging options; only useful for developers ########

debug 0
debugPacket_unparsed 0
debugPacket_received 0
debugPacket_ro_sent 0
debugPacket_sent 0
debugPacket_exclude
debugPacket_include
debugPacket_include_dumpMethod
debugDomains
logToFile_Debug
logToFile_Errors
logToFile_Messages
logToFile_Warnings
history_max 50
gameGuard 0
macro_orphans terminate




Top
 Profile  
 
 Post subject: Re: reactOnNPC v.2.0.2 by hakore
PostPosted: 16 Nov 2018, 04:54 
Offline
Human
Human

Joined: 02 Aug 2009, 13:00
Posts: 21
is there a way to make openkore console show the color code without using the plugin?
I tried to modify the receivie.pm and disabled remove color code link and still not working.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 426 posts ]  Go to page Previous  1 ... 39, 40, 41, 42, 43  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group