yolinlin yolinlin
关注数: 47 粉丝数: 101 发帖数: 3,113 关注贴吧数: 72
修复90级SS左轮金色闪光效果 金色闪光的效果是根据角色佩戴的神器,传说,史诗来提升伤害. 已知我们可以通过nut来放大总伤害,那么我们只需要判断身上带了多少装备就可以了. 先按照手搓光,给金色闪光搞一个启动ID. [skill data up] `[all]`169`[dungeon type]``[static]`19`+`10002 [/skill data up] 169的静态19如果是10002就是启动ID. 然后我们需要给所有神器装备,传说装备,史诗装备设置一个标识,穿上标识就+1. 给所有神器装备加上: [skill data up] `[all]`169`[dungeon type]``[static]`21 `+`1 [/skill data up] 给所有传说装备加上: [skill data up] `[all]`169`[dungeon type]``[static]`22`+`1 [/skill data up] 给所有史诗装备加上: [skill data up] `[all]`169`[dungeon type]``[static]`23`+`1 [/skill data up] 现在我们就可以判断身上有多少件符合要求的装备了. 然后就是nut内写放大伤害. function setjinse(obj) { local rate = 0; if (obj.sq_GetIntData(169, 19) == 10002) { local ss = obj.sq_GetIntData(169, 23); local cs = obj.sq_GetIntData(169, 22); local sq = obj.sq_GetIntData(169, 21); for (local loop = 0; loop < 6; loop++) { if (ss > 0) { ss--; rate += 9; } else if (cs > 0) { cs--; rate += 7; } else if (sq > 0) { sq--; rate += 5; } } } return rate; } 这样就是循环6次,从最高的开始,史诗开始便利,每一件加9,每一件传说增加7,每一件神器增加5.再把这个函数返回出去的数字,加到放大伤害里面. rate += setjinse(obj) / 100.0; 这样就可以实现金色闪光的效果了.
添加所有技能伤害词条 其实很简单,增加技能伤害,就是剔除普通攻击,判断是否技能或者OBJ。 首先在唤醒,或者是后跳,自己会加的可以自己加,加一条静态或者动态。我是加入在唤醒里面的,通过给唤醒新增一条动态29,来使装备可以给唤醒增加技能伤害。接下来,通过判断攻击技能ID,来查看是否是技能,在onAttack_Swordman,加入以下: local damage = sq_GetLevelData(obj, 254, 29, sq_GetSkillLevel(obj, 254)); if(damage > 1) { if(obj.getCurrentSkillIndex() > 0) { obj.sq_SetCurrentAttackBonusRate(damage); } } 这样就完成了对唤醒29的数值读取与判断技能,并且添加伤害。 光添加这里是不够的,因为很多技能,是OBJ攻击,非本体,那么就要去OBJ的地方也加上这个唤醒的数值加成。 在onAttack_PassiveObject内,加入以下: if(ID != 48081) { local parentChr = sq_GetCNRDObjectToSQRCharacter(passiveobj.getTopCharacter()); local damage = sq_GetLevelData(parentChr, 254, 29, sq_GetSkillLevel(parentChr, 254)); if(damage > 1) { sq_SetCurrentAttackBonusRate(sq_GetCurrentAttackInfo(passiveobj), damage); } } 由于48081是白字OBJ,所以首先剔除掉,那么除了白字,其他的OBJ都会吃唤醒的技能伤害加成了。 暂时测试了剑魂没发现什么问题,普通攻击还是原来的伤害,当使用技能,就完全不一样的伤害了。至于其他职业会不会出什么问题,可以到时候自己调整调整。
提取到的所有NPC标签 位置在importNpcScript [name] [field name] [small face] [big face] [popup face] [field animation] [field wav] [popup wav] [look around] [role] [sudden shop] [crane minigame] [one a day shop] [convert avatar jpn] [compound emblem jpn] [secret shop] [blue marble] [time sand] [repair item] [image communication] [tutorial dungeon lvup] [genuine damage upgrade] [SANSENBAKO] [random option operate] [contest reception] [play quest movie] [job change] [cera shop inventory] [play bead movie] [disjoint repair] [disjoint upgrade] [housing guild agit] [guild storage] [powerwar statue] [upgrade guild agit] [delete guild agit] [enter guild agit] [exit guild agit] [security card make] [security card remake] [security card delete] [automat] [mouse register] [just a cake] [convert avatar] [compound emblem] [amplify item] [event halloween witch [coin vending machine] [event message board] [event halloween caldron] [donate power war point] [create guild agit] [product item] [power war] [move town] [item storage] [post box] [coke vending machine] [upgrade item] [upgrade item event] [disjoint item] [guild] [item shop] [recover stamina] [sera shop] [/role] [quest speech] [skill] [common] [web page] [/web page] [movie path] [/movie path] [ingame advertisement movie path] [speech] [click mark] [dialog] [/dialog] [favor_dialog] [/favor_dialog] [favor_dialog_exception] [/favor_dialog_exception] [event_favor_dialog] [/event_favor_dialog] [1st favor dialog] [/1st favor dialog] [favor_duration_reward_buff_dialog] [string data] [int data] [balloon message] [favorable relationship] [/favorable relationship] [default favor] [max gift per day] [dialog day not continuously] [mood] [/mood] [change] [key item] [gift item] [/gift item] [favor rate per mood] [prefer item] [prefer item group] [unprefer item] [unprefer item group] [reward item] [/reward item] [item info] [/item info] [favor level] [mood] [/mood] [favor] [favor level reward mail] [favor_duration_reward] [favor_duration_reward_buff] [visible on dungeon clear] [move town limit str] [move town confirm str] [random message balloon] [random message animation] [random message probability] [random message list] [hide]
从df.game提取到的所有道具词条 位置在ImportStackableScript [name] [emancipate ticket] [equipment reinforcement ticket] [check usable itemlevel] [passive object in stackable] [equipment amplify reinforcement ticket] [amplification random value] [/amplification random value] [field image] [stack limit] [package data selection] [equipment upgrade] [hp recovery] [active status recovery] [except status recovery] [my status] [buff] [mp recovery] [booster category name] [booster selection num] [booster category num] [booster info] [/booster info] [booster equipment upgrade] [default select] [recommend] [booster select category] [/booster select category] [expiration date] [secret add item] [package data] [usable period] [set item master] [icon mark] [packagable] [creature minimum level] [use wav] [random list] [random] [/random] [sealing removal item] [default list] [applying range] [string data] [int data] [usable upgrade chracter level] [move wav] [auction free] [medal] [need material] [recieve postal message] [linking quest index] [cash] [disable icon] [finish point price] [advance altar need gage] [price] [value] [cool time] [shared effect] [pc exp bonus rate] [icon] [tarotcard view] [exp bonus rate] [cooltime maintenance] [effect maintenance] [cooltime group] [party cooltime] [minimum level] [minimum rank] [appendage group] [max having count] [action usable place] [action usable server type] [daily delete item] [increase status type] [collision item] [stackable type] [waste] [material] [material expert job] [recipe] [throw] [set] [legacy] [stackable legacy] [quest] [creature] [feed] [only effect] [creature expitem] [etc] [booster] [booster random] [unlimited waste] [cera package] [usable cera package] [cera booster] [upgradable legacy] [expert town potion] [global effect] [contract] [enchant waste] [quest receive] [avatar emblem] [unlimited etc] [disguise] [multi upgradable legacy bonus cera] [multi upgradable legacy] [tarot card lottery] [tarot card] [upgrade limit cube] [random upgradable legacy] [town and dungeon] [unlimited town and dungeon] [booster selection] [dye] [teleport potion] [premium] [sub type] [action type] [use action packet] [additional item] [suitable job] [weight] [usable job] [grade] [attach type] [creation rate] [rarity] [free] [trade] [trade delete] [sealing] [account] [trade limit] [flavor text] [explain] [explain2] [name2] [mail from] [guild exp amount] [special monster drop] [do not delete] [arad_item_kind] [arad_use] [usable first growtype] [maximum level] [use 2nd upgrade table] [routing priority] [/routing priority] [difficulty for extra drop] [dungeon type for extra drop] [alchemist] [enchanter] [doll_controller] [expert type] [monster card id] [bead item] [use effect explain] [disable] [use item emoticon index] [impossible contents] [limit dungeon] [usable date] [npc gift disallowance] [guild power war point] [user power war point] [item group name] [avatar emblem target type] [consume item] [avatar package preview info] [creature preview info] [event monster summons] [summon apc] [summon npc] [enchant] [/enchant] [pvp] [monster summons] [stat change] [stat change duration] [dye type] [broadcast type] [fail output] [trade limit max] [target item id] [maintain ability] [success rate] [stat desc] [dye info] [random option unseal] [all] [avatar select ability change] [avatar select ability except] [usable avatar index] [chat notice gold] [/chat notice gold] [lottery use cost] [levelup range] [item category] [usable game server type] [probability] [3choro enchant] [check] [skill] [skill explain] [/check] [/3choro enchant] [upgrade limit cube info] [A condition item] [B condition item] [result item] [/upgrade limit cube info] [minimum itemmaking level] [expertjob only] [usable world] [evolution creature] [mail content] [onemore check] [alchemist extraction] [doll_controller extraction] [unlimited waste] [enchanter extraction] [monstercard bind] [shop doll] [unseal scroll level limit] [prof material variation] [prof compound rate] [portable disjoint]
从df.game提取到的所有装备词条 位置在importEquipmentParameterInfo [HP MAX] [HP MAX rate] [MP MAX] [MP MAX rate] [physical attack] [physical defense] [magical attack] [magical defense] [if] [then] [/multiple then] [then] [multiple then] [equipment physical attack] [equipment physical defense] [equipment magical attack] [equipment magical defense] [additional effect index] [recovery status] [separate attack] [separate rate] [physical absolute damage] [physical damage reduce] [physical absolute defense] [magical absolute damage] [magical damage reduce] [magical absolute defense] [fire resistance] [water resistance] [dark resistance] [light resistance] [all elemental resistance] [slow resistance] [freeze resistance] [poison resistance] [stun resistance] [curse resistance] [blind resistance] [lightning resistance] [stone resistance] [sleep resistance] [burn resistance] [weapon break resistance] [bleeding resistance] [piercing resistance] [stuck resistance] [confuse resistance] [hold resistance] [armor break resistance] [inventory limit] [HP regen speed] [MP regen speed] [MP regen speed rate] [move speed] [x move dash speed] [y move dash speed] [attack speed] [cast speed] [hit recovery] [jump power] [elemental property] [blind] [slow] [haste] [stone] [confuse] [armor break] [weapon break] [poison] [lightning] [bleeding] [burn] [bless] [curse] [active status] [blind] [slow] [haste] [stone] [confuse] [armor break] [weapon break] [poison] [lightning] [bleeding] [burn] [bless] [curse] [attacked active status] [physical] [magical] [add absolute damage] [physical] [magical] [add absolute defense] [item aura] [skill data up] [push aside] [lift up] [physical critical hit] [magical critical hit] [stuck] [ignore defense] [human damage rate] [fort damage rate] [monster damage rate] [HP drain] [MP drain] [common] [skill levelup] [common] [avatar select ability] [room list move speed rate] [anti evil] [rigidity] [fire attack] [water attack] [dark attack] [light attack] [active status probability] [active status level] [active status control info] [account bind linear ability] [physical attack] [magical attack] [physical defense] [magical defense] [equipment physical attack] [equipment magical attack] [equipment physical defense] [equipment magical defense] [grade] [separate attack] [separate rate] [repair price] [/level linear ability] [level linear ability] [all skill item] [item overpower desc] [item overpower part] [ice appendage] [curse appendage] [upgrade cost discount] [upgrade prob increase] [assault cost discount] [decrease critical damage] [hardcoding parameter] [all elemental attack] [probability] [consume item] [hp recovery] [cooltime] [mp recovery] [rebirth] [potion physical attack] [potion magical attack] [variable stat]
1 下一页