楼主: hoopzz

[巫妖王之怒] 武器发光特效LUA,bling~bling~buling武器闪亮亮

[复制链接]

1507

时沙

0

精华

24

主题

声望: 3522   虚弱: 0

Lv.6(觉醒者)

灵蛇献瑞(尚美制作)祥龙贺岁(尚美制作)时沙之瓶信仰战今天也只能打恢复的增强萨吟游牧师潜行者

发表于 2023-2-27 08:54:26 | 显示全部楼层
感谢分享 感谢分享  买不起~
签名被屏蔽
回复

使用道具 举报

144

时沙

0

精华

1

主题

声望: 126   虚弱: 0

Lv.2(潜行者)

发表于 2023-5-8 10:18:14 | 显示全部楼层

请问一下哥们儿,这个Mod叫什么啊?
[发帖际遇]: anyanfei模仿三季稻屠杀小号,被一团人埋伏守尸一个月,失去2 声望. 幸运榜 / 衰神榜
回复

使用道具 举报

60

时沙

0

精华

1

主题

声望: 104   虚弱: 0

Lv.2(潜行者)

发表于 2023-5-25 02:33:09 | 显示全部楼层
楼主麻烦问下1.12端没有任务插件,去网下下的不兼容,有没有好的推荐
回复

使用道具 举报

1587

时沙

0

精华

0

主题

声望: 2141   虚弱: 0

Lv.5(无冕者)

祥龙贺岁(尚美制作)金兔迎春(尚美制作)福虎贺岁(尚美制作)炉石时沙之瓶今天也只能打恢复的增强萨潜行者金鼠(ytfirefox制作) 犇向牛年(尚美制作)

发表于 2023-5-25 03:24:50 | 显示全部楼层
哈哈,玩儿的真花花
回复

使用道具 举报

1048

时沙

0

精华

0

主题

声望: 4049   虚弱: 0

Lv.6(觉醒者)

炉石

发表于 2023-5-25 08:18:48 | 显示全部楼层
感谢分享 感谢分享  买不起~
回复

使用道具 举报

316

时沙

0

精华

7

主题

声望: 1656   虚弱: 0

Lv.5(无冕者)

炉石

发表于 2023-8-3 00:29:08 | 显示全部楼层

兄弟在哪里呀
回复

使用道具 举报

1324

时沙

1

精华

53

主题

声望: 4008   虚弱: 0

Lv.6(觉醒者)

炉石积少成多假死猎人金鼠(ytfirefox制作)

发表于 2023-9-8 12:18:20 | 显示全部楼层
啥好玩应 卖着贵
[发帖际遇]: sun309310555在燃烧军团入侵时挺身而出,不幸战死,获得1 声望. 幸运榜 / 衰神榜
回复

使用道具 举报

17

时沙

0

精华

0

主题

声望: 16   虚弱: 0

Lv.1(追随者)

发表于 2023-12-25 17:14:23 | 显示全部楼层
这个挺好看
回复

使用道具 举报

发表于 2023-12-25 17:26:19 | 显示全部楼层
挺有意思的,支持一下
回复

使用道具 举报

发表于 2024-6-25 08:25:31 | 显示全部楼层
本帖最后由 feirnova 于 2024-6-25 08:27 编辑

搬运的吧: https://github.com/ElunaLuaEngin ... eapon%20visuals.lua
  1. --[[
  2. Author: Rochet2 - https://rochet2.github.io/
  3. Source: http://emudevs.com/showthread.php/53-Lua-Enchant-visual-system-and-gossip
  4. About:
  5. All weapons looted have a 25% chance to have a random enchant visual
  6. This is purely visual fun and the visual will be replaced when the weapon is enchanted.
  7. This script is 100% automatic. You can only put it to your script folder and it will work.
  8. ]]
  9. local chance = 0.25
  10. -- Do not edit anything below
  11. local charactersSQL = [[
  12. CREATE TABLE IF NOT EXISTS `custom_item_enchant_visuals` (
  13.     `iguid` INT(10) UNSIGNED NOT NULL COMMENT 'item DB guid',
  14.     `display` INT(10) UNSIGNED NOT NULL COMMENT 'enchantID',
  15.     PRIMARY KEY (`iguid`)
  16. )
  17. COMMENT='stores the enchant IDs for the visuals'
  18. COLLATE='latin1_swedish_ci'
  19. ENGINE=InnoDB;
  20. ]]
  21. CharDBQuery(charactersSQL)
  22. -- script variables:
  23. local EQUIPMENT_SLOT_MAINHAND = 15
  24. local EQUIPMENT_SLOT_OFFHAND = 16
  25. local PLAYER_VISIBLE_ITEM_1_ENCHANTMENT = 284
  26. local PERM_ENCHANTMENT_SLOT = 0
  27. local DD
  28. -- functions
  29. local LoadDB, setVisual, applyVisuals, LOGIN
  30. function LoadDB()
  31.     DD = {}
  32.     CharDBQuery("DELETE FROM custom_item_enchant_visuals WHERE NOT EXISTS(SELECT 1 FROM item_instance WHERE custom_item_enchant_visuals.iguid = item_instance.guid)")
  33.     local Q = CharDBQuery("SELECT iguid, display FROM custom_item_enchant_visuals")
  34.     if (Q) then
  35.         repeat
  36.             local iguid, display = Q:GetUInt32(0), Q:GetUInt32(1)
  37.             DD[iguid] = display
  38.         until not Q:NextRow()
  39.     end
  40. end
  41. LoadDB()
  42. function setVisual(player, item, display)
  43.     if (not player or not item) then return
  44.         false
  45.     end
  46.     local iguid = item:GetGUIDLow()
  47.     local enID = item:GetEnchantmentId(PERM_ENCHANTMENT_SLOT) or 0
  48.     if (enID ~= 0) then
  49.         CharDBExecute("DELETE FROM custom_item_enchant_visuals WHERE iguid = "..iguid)
  50.         DD[iguid] = nil
  51.         display = enID
  52.     elseif (not display) then
  53.         if (not DD[iguid]) then
  54.             return false
  55.         end
  56.         display = DD[iguid]
  57.     else
  58.         CharDBExecute("REPLACE INTO custom_item_enchant_visuals (iguid, display) VALUES ("..iguid..", "..display..")")
  59.         DD[iguid] = display
  60.     end
  61.     if (item:IsEquipped()) then
  62.         player:SetUInt16Value(PLAYER_VISIBLE_ITEM_1_ENCHANTMENT + (item:GetSlot() * 2), 0, display)
  63.     end
  64.     return true
  65. end
  66. function applyVisuals(player)
  67.     if (not player) then
  68.         return
  69.     end
  70.     for i = EQUIPMENT_SLOT_MAINHAND, EQUIPMENT_SLOT_OFFHAND do
  71.         setVisual(player, player:GetItemByPos(255, i))
  72.     end
  73. end
  74. function LOGIN(event, player)
  75.     applyVisuals(player)
  76. end
  77. RegisterPlayerEvent(3, LOGIN)
  78. RegisterPlayerEvent(29, function(e,p,i,b,s) setVisual(p, i) end)
  79. -- Enchant IDs
  80. local E = {3789, 3854, 3273, 3225, 3870, 1899, 2674, 2675, 2671, 2672, 3365, 2673, 2343, 425, 3855, 1894, 1103, 1898, 3345, 1743, 3093, 1900, 3846, 1606, 283, 1, 3265, 2, 3, 3266, 1903, 13, 26, 7, 803, 1896, 2666, 25}
  81. local SubClasses = {
  82.     [0] = true,
  83.     [1] = true,
  84.     [4] = true,
  85.     [5] = true,
  86.     [6] = true,
  87.     [7] = true,
  88.     [8] = true,
  89.     [10] = true,
  90.     [11] = true,
  91.     [12] = true,
  92.     [14] = true,
  93.     [15] = true,
  94. }
  95. math.randomseed(os.time())
  96. local function ONITEMLOOT(event, player, item, count, guid)
  97.     if (item:GetClass() == 2 and SubClasses[item:GetSubClass()]) then
  98.         if (math.random() < chance) then -- 25% of looted weapons get the visuals
  99.             setVisual(player, item, E[math.random(#E)])
  100.         end
  101.     end
  102. end
  103. RegisterPlayerEvent(32, ONITEMLOOT)
复制代码
回复

使用道具 举报

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