海盗社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 19132|回复: 0

一键四级宝石文本

[复制链接]

4

主题

5

帖子

37

积分

版主

Rank: 7Rank: 7Rank: 7

积分
37
发表于 2018-5-13 16:36:46 | 显示全部楼层 |阅读模式
Lvl 4 Gem Combiner NPC
Here's an Lvl 4 Gem Combiner NPC:

function fast_comby ()
Talk( 1, "Hello,Do you want me to combine your gems..Bring me 8 gem for lv4 gem." )
Text( 1, "Refining Gem", JumpPage, 9)
Text( 1, "Gem of the Wind", JumpPage, 2)
Text( 1, "Gem of Striking", JumpPage, 3)
Text( 1, "Gem of Colossus", JumpPage, 4)
Text( 1, "Gem of Rage", JumpPage, 5)
Text( 1, "Gem of Soul", JumpPage, 10)
Text( 1, "Eye of Black Dragon", JumpPage, 6)
Text( 1, "Soul of Black Dragon", JumpPage, 7)
Text( 1, "Heart of Black Dragon", JumpPage, Cool

Talk( 2, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 860, 8 )
TriggerAction( 1, TakeItem, 860, 8 )
TriggerAction( 1, GiveItem, 860, 1, 104 )
Text( 2, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 3, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 861, 8 )
TriggerAction( 1, TakeItem, 861, 8 )
TriggerAction( 1, GiveItem, 861, 1, 104 )
Text( 3, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 4, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 862, 8 )
TriggerAction( 1, TakeItem, 862, 8 )
TriggerAction( 1, GiveItem, 862, 1, 104 )
Text( 4, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 5, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 863, 8 )
TriggerAction( 1, TakeItem, 863, 8 )
TriggerAction( 1, GiveItem, 863, 1, 104 )
Text( 5, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 6, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 864, 8 )
TriggerAction( 1, TakeItem, 864, 8 )
TriggerAction( 1, GiveItem, 864, 1, 104 )
Text( 6, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 7, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 865, 8 )
TriggerAction( 1, TakeItem, 865, 8 )
TriggerAction( 1, GiveItem, 865, 1, 104 )
Text( 7, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 8, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 866, 8 )
TriggerAction( 1, TakeItem, 866, 8 )
TriggerAction( 1, GiveItem, 866, 1, 104 )
Text( 8, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )
Talk( 9, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 885, 8 )
TriggerAction( 1, TakeItem, 885, 8 )
TriggerAction( 1, GiveItem, 885, 1, 104 )
Text( 9, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

Talk( 10, "Bring me 8 Gems for Lv4 Gem" )
InitTrigger()
TriggerCondition( 1, HasLeaveBagGrid, 1 )
TriggerCondition( 1, KitbagLock, 0 )
TriggerCondition( 1, HasItem, 1012, 8 )
TriggerAction( 1, TakeItem, 1012, 8 )
TriggerAction( 1, GiveItem, 1012, 1, 104 )
Text( 10, "Combine Fast.", MultiTrigger, GetMultiTrigger(), 1 )

end

That's IT!

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|海盗社区

GMT+8, 2019-12-6 01:08 , Processed in 0.049877 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表