- 29/8/09
- 2,654
- 5,688
[BL].Kunkka;15758481 nói:Có ai giúp em làm cái Gậy Xanh giống như Dota kô? Tăng Level cho Ultimate Skill ý. Cảm ơn trước
cái này cực đơn giản
không cần xài GUi hay jasscode đâu
chỉ cần code melee

tức là mặt định

đầu tiên bạn set skils của kon tinker trong warcraft melee cái skils tên là (Engineering Upgrade) = item Ability (True)
rùi ví dụ skils của kon hero cần đeo item là
Thunder Clap đi
thì set cho nó là Thunder Clap 2 là skils khác
còn thunder clap 1 là skils của con hero
thì set agility này vào item ( ví dụ là item tên gạy xanh )đi là ok
có 2 cái thunderclap
cái thứ 2 là skils nên cho kon hero đổi

bị lỗi [ kích thước đầy đủ bản đồ phải là một bội số của 32 trong cả hai chiều ]
ai có thể tạo giúp em 1 trigger 1 món item sau wait mà không ai nhặt thì mất đc không
---------- Post added at 19:18 ---------- Previous post was at 19:16 ----------
ok đc rồi lấy full rồi chỉnh lại
Mã:
[COLOR="Blue"]Xoaitemtheowait
Events
Time - Every 60.00 seconds of game time //( thời gian cần wait thôi)
Conditions
Actions
Item - Remove (Random item in (Entire map))
[/COLOR]
cái này Item - Remove (Random item in (Entire map)) chắc thêm nhiều vào mới có hiệu quả

---------- Post added at 13:29 ---------- Previous post was at 13:12 ----------
không rộng được bao nhiêu? ví dụ map từ 64x64, chỉnh ra 128x128 hay max là 256x256 mà còn muốn thế nào nữa :o
lưu mục tiêu vào Hashtable rồi dùng một timer để "order lại"
Các biến:
- Hash - hashtable
- Temp_Point - point
- TempUnit - unit
khởi tạo hashtable
Mã:Init Hashtable Events Map initialization Conditions Actions Hashtable - Create a hashtable Set Hash = (Last created hashtable)
lưu vị trí mà creep đang tấn công, sẽ lưu tọa độ X và Y của điểm cần tới.
phần code này được chạy sau những đoạn trigger order creep.
Mã:Save Creep Target Events Conditions Actions Set TempUnit = <unit của bạn> Set Temp_Point = (Center of <region của bạn>) Hashtable - Save (X of Temp_Point) as (Key TargetX) of (Key CreepTargetLoc) in Hash Hashtable - Save (Y of Temp_Point) as (Key TargetY) of (Key CreepTargetLoc) in Hash Unit - Order TempUnit to Move To Temp_Point Custom script: call RemoveLocation(udg_Temp_Point)
đây là trigger "order-lại", trigger này chạy mỗi 5s, pick tất cả các unit:
- còn sống
- có order hiện tại (current order) là <empty string>, nghĩa là unit đó đang "không làm gì"
- unit-type là Footman <-- phải thay đổi hoặc thêm điều kiện
Mã:ReOrder Creep Events Time - Every 5.00 seconds of game time Conditions Actions Custom script: set bj_wantDestroyGroup = true Unit Group - Pick every unit in (Units in (Playable map area) matching (((((Matching unit) is alive) Equal to True) and ((String((Current order of (Matching unit)))) Equal to <Empty String>)) and ((Unit-type of (Matching unit)) Equal to Footman))) and do (Actions) Loop - Actions Set Temp_Point = (Point((Load (Key TargetX) of (Key CreepTargetLoc) from Hash), (Load (Key TargetY) of (Key CreepTargetLoc) from Hash))) Unit - Order (Picked unit) to Move To Temp_Point Custom script: call RemoveLocation(udg_Temp_Point)
map gửi kèm ở dưới chỉ để xem lệnh nào ở đâu.
sau máy con creeps của dh-g cứ lâu lâu chọn điểm mid mà đi ta

Attachments
Last edited by a moderator:

