HungDevJX
19-03-16, 02:01 PM
Bạn vào setting/item mở file goldequip và xem id của món mình cần. Dùng lệnh additem lấy ra sài.
bạn có thể cho xin face or yahoo được không tui mới tập viết code.
Có viết đoạn code nhận HKMP vào NPC mới add. Lúc mà chưa viết code thì click vào NPC vẫn dc. lúc mà add spcrit mới viết thì k click dc luôn. Bạn xem dùm đoạn scprit này có sai chỗ nào không. Mới viết nên hơi ngáo ộp xí
function laytrangbi()
local tbOpt =
{
{"ThiÕu l©m", tl},
{"Thiªn v¬ng", tv},
{"®êng m«n", dm},
{"Ngò ®éc", nd},
{"Nga mi", nm},
{"Thuý yªn", ty},
{"C¸i bang", cb},
{"Thiªn nhÉn", tn},
{"Vâ ®ang", vd},
{"C«n l«n", cl},
{"Trë l¹i", main},
{"Tho¸t"},
}
CreateNewSayEx("Mêi c¸c h¹ chän m«n ph¸i?", tbOpt)
end
function tv()
local tb0pt =
{
{"Méng long",monglong},
{"Phôc ma",phucma},
{"Tø kh«ng",tukhong},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function dm()
local tb0pt =
{
{"§Þa ph¸ch",diaphach},
{"S©m hoµng",samhoang},
{"B¨ng hµn",banghan},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function nd()
local tb0pt =
{
{"Minh ¶o",minhao},
{"U long",ulong},
{"Chó phîc",chuphuoc},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function nm()
local tb0pt =
{
{"V« gian", vogian},
{"V« ma",voma},
{"V« trÇn",votran},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function ty}
local tb0pt =
{
{"Tª hoµng",tehoang},
{"BÝch hµi",bichhai},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function cb()
local tb0pt =
{
{"§ång cõu",dongcuu},
{"§Þch kh¸i",dinhkhai}.
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function tn()
local tb0pt =
{
{"Ma hoµng",mahoang},
{"Ma s¸t",masat},
{"Ma bÞ",mabi},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function vd()
local tb0pt =
{
{"CËp phong",capphong},
{"L¨ng nh¹c",langnhac},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function cl()
local tb0pt =
{
{"Vô ¶o",vuao},
{"L«i khung",loikhung},
{"S¬ng tinh",suongtinh},
{"T¹i h¹ kh«ng cÇn",laytrangbi},
}
CreateNewSayEx("Mêi c¸c h¹ chän !", tbOpt)
end
function monglong()
AddItem(0,2,32,10,4,10,10)
AddItem(0,7,16,10,0,10,10 )
AddItem(0,6,6,10,3,10,10)
AddItem(0,9,6,10,1,10,10)
AddItem(0,5,6,10,2,10,10)
end
function tukhong()
AddItem(0,8,4,10,0,10,10)
AddItem(0,2,34,10,0,10,10)
AddItem(0,0,10,10,0,10,10)
AddItem(0,6,8,10,0,10,10)
AddItem(0,3,9,10,0,10,10)
end
function phucma()
AddItem(0,0,9,10,0,10,10)
AddItem(0,2,33,10,0,10,10)
AddItem(0,5,7,10,0,10,10)
AddItem(0,6,7,10,0,10,10)
AddItem(0,9,7,10,0,10,10)
end
function kenghiep()
AddItem(0,8,6,10,0,10,10)
AddItem(0,2,36,10,0,10,10)
AddItem(0,0,7,10,0,10,10)
AddItem(0,6,10,10,0,10,10)
AddItem(0,5,9,10,0,10,10)
end
function ngulong()
AddItem(0,0,8,10,0,10,10)
AddItem(0,3,10,10,0,10,10)
AddItem(0,6,11,10,0,10,10)
end
function hamthien()
AddItem(0,8,5,10,0,10,10)
AddItem(0,0,6,10,0,10,10)
AddItem(0,2,35,10,0,10,10)
AddItem(0,5,8,10,0,10,10)
end
function minhao()
AddItem(0,8,10,10,0,10,10)
AddItem(0,2,41,10,0,10,10)
AddItem(0,3,17,10,0,10,10)
AddItem(0,5,12,10,0,10,10)
AddItem(0,0,14,10,0,10,10)
end
function ulung()
AddItem(0,7,19,10,0,10,10)
AddItem(0,2,40,10,0,10,10)
AddItem(0,8,9,10,0,10,10)
AddItem(0,6,15,10,0,10,10)
AddItem(0,5,11,10,0,10,10)
end
function chuphuoc()
AddItem(0,7,20,10,0,10,10)
AddItem(0,4,9,10,0,10,10)
AddItem(0,8,11,10,0,10,10)
AddItem(0,3,18,10,0,10,10)
AddItem(0,5,13,10,0,10,10)
end
function diaphach()
AddItem(0,7,21,10,0,10,10)
AddItem(0,5,16,10,0,10,10)
AddItem(0,4,11,10,0,10,10)
end
function banghan()
AddItem(0,1,4,10,0,10,10)
AddItem(0,2,42,10,0,10,10)
AddItem(0,5,14,10,0,10,10)
AddItem(0,6,16,10,0,10,10)
AddItem(0,9,11,10,0,10,10)
end
function samhoang()
AddItem(0,1,3,10,0,10,10)
AddItem(0,2,43,10,0,10,10)
AddItem(0,5,15,10,0,10,10)
AddItem(0,6,18,10,0,10,10)
AddItem(0,9,12,10,0,10,10)
end
function vogian()
AddItem(0,8,7,10,0,10,10)
AddItem(0,2,37,10,0,10,10)
AddItem(0,3,11,10,0,10,10)
AddItem(0,6,12,10,0,10,10)
AddItem(0,0,11,10,0,10,10)
end
function voma()
AddItem(0,7,17,10,0,10,10)
AddItem(0,5,10,10,0,10,10)
AddItem(0,9,8,10,0,10,10)
AddItem(0,3,12,10,0,10,10
AddItem(0,2,38,10,0,10,10)
end
function votran()
AddItem(0,7,18,10,0,10,10)
AddItem(0,4,7,10,0,10,10)
AddItem(0,3,14,10,0,10,10)
AddItem(0,3,13,10,0,10,10)
AddItem(0,9,9,10,0,10,10)
end
function tehoang()
AddItem(0,2,39,10,0,10,10)
AddItem(0,8,4,10,0,10,10)
AddItem(0,3,15,10,0,10,10)
AddItem(0,6,13,10,0,10,10)
AddItem(0,0,12,10,0,10,10)
end
function bichhai()
AddItem(0,4,8,10,0,10,10)
AddItem(0,9,10,10,0,10,10)
AddItem(0,6,14,10,0,10,10)
AddItem(0,0,13,10,0,10,10)
end
function dongcuu()
AddItem(0,8,13,10,0,10,10)
AddItem(0,2,44,10,0,10,10)
AddItem(0,3,19,10,0,10,10)
AddItem(0,6,19,10,0,10,10)
end
function dichkhai()
AddItem(0,8,14,10,0,10,10)
AddItem(0,2,45,10,0,10,10)
AddItem(0,3,20,10,0,10,10)
AddItem(0,6,20,10,0,10,10)
AddItem(0,0,15,10,0,10,10)
end
function capphong()
AddItem(0,4,14,10,0,10,10)
AddItem(0,9,15,10,0,10,10)
AddItem(0,3,25,10,0,10,10)
AddItem(0,6,23,10,0,10,10)
AddItem(0,0,17,10,0,10,10)
end
function langnhac()
AddItem(0,3,24,10,0,10,10)
AddItem(0,2,47,10,0,10,10)
AddItem(0,3,23,10,0,10,10)
AddItem(0,9,14,10,0,10,10)
AddItem(0,0,18,10,0,10,10)
end
function vuao()
AddItem(0,7,24,10,0,10,10)
AddItem(0,4,16,10,0,10,10)
AddItem(0,3,28,10,0,10,10)
AddItem(0,9,17,10,0,10,10)
AddItem(0,5,19,10,0,10,10)
end
function loikhung()
AddItem(0,7,23,10,0,10,10)
AddItem(0,4,15,10,0,10,10)
AddItem(0,3,27,10,0,10,10)
AddItem(0,6,25,10,0,10,10)
AddItem(0,9,16,10,0,10,10)
end
function suongtinh()
AddItem(0,2,48,10,0,10,10)
AddItem(0,8,17,10,0,10,10)
AddItem(0,3,26,10,0,10,10)
AddItem(0,6,24,10,0,10,10)
AddItem(0,0,19,10,0,10,10)
end
Powered by vBulletin® Version 4.2.0 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.