PDA

View Full Version : [TLBB] Các Bạn Giúp Tớ Với......



quyentran
10-08-14, 04:59 PM
Tình hình là tớ làm 1 con NPC nhận thưởng thăng cấp....nhận ĐMP code như sau:
if GetNumText() == 999 then
local msgStr = format( "#YKhi ÐÕt C¤p е Hãy Nh§n Thß·ng....")
BeginEvent(sceneId)
AddText(sceneId,msgStr)
if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard0 ) then
AddNumText( sceneId, x900022_g_ScriptId, "#gFF3E96C¤p 30 Thß·ng[5000ÐMP]", 5, 1111 )
end

if 1 ~= GetMissionData( sceneId, selfId, MF_GetNewUserCard1) then
AddNumText( sceneId, x900022_g_ScriptId, "#gFF3E96C¤p 50 Thß·ng[6000ÐMP]", 5, 1112 )
end
EndEvent( sceneId )
DispatchEventList( sceneId, selfId, targetId )
end
if GetNumText() == 1111 then
local lev = GetLevel( sceneId, selfId )
if lev<30 then
x900022_NotifyFailBox( sceneId, selfId, targetId, " C¤p B§c Không Ðü...Khi Nào Ъn 30 Hãy ðªn tìm ta." )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard0 )
if index == 1 then
x900022_NotifyFailBox( sceneId, selfId, targetId, " Nh§n R°i Còn Ðòi Gì Næa..." )
return
else
local nMenpaiPoint = GetHumanMenpaiPoint(sceneId, selfId)
SetHumanMenpaiPoint(sceneId, selfId, nMenpaiPoint + (5000))
SetMissionData( sceneId, selfId, MF_GetNewUserCard0, 1 )
x900022_NotifyFailBox( sceneId, selfId, targetId, " Chúc M×ng Nh§n Thß·ng Thành Công" )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end
elseif GetNumText() == 1112 then
local lev = GetLevel( sceneId, selfId )
if lev<50 then
x900022_NotifyFailBox( sceneId, selfId, targetId, " C¤p B§c Không Ðü...Khi Nào Ъn 50 Hãy ðªn tìm ta." )
return
end
local index = GetMissionData( sceneId, selfId, MF_GetNewUserCard1 )
if index == 1 then
x900022_NotifyFailBox( sceneId, selfId, targetId, " Nh§n R°i Còn Ðòi Gì Næa..." )
return
else
local nMenpaiPoint = GetHumanMenpaiPoint(sceneId, selfId)
SetHumanMenpaiPoint(sceneId, selfId, nMenpaiPoint + (6000))
SetMissionData( sceneId, selfId, MF_GetNewUserCard1, 1 )
x900022_NotifyFailBox( sceneId, selfId, targetId, " Chúc M×ng Nh§n Thß·ng Thành Công" )
BroadMsgByChatPipe(sceneId, selfId, str, 4)
end

Vấn đề là khi vào chạy thử thì nó không chạy....Bạn Nào đã làm cái này rồi giúp tớ sửa lại cho đúng với...thanks
à thêm 1 câu hổi nữa server và client của Hai Xuân tớ việt hóa xong...cho acc chạy từ Lạc Duơng đến Nhạn Nam thì qua cảnh Nhạn Nam tọa độ Đúng....Nhưng khi chạy Nhạn Nam vào Lạc Duơng thì acc lại Đứng trên tường thành và không di chuyển được luôn....không biết sai tọa độ chỗ nào...giúp tớ với

vinateam
10-08-14, 05:06 PM
input:48: 'end' expected (to close 'if' at line 15) near <eof>
xem lại coi cậu không thì vào trang check lua :D

quyentran
10-08-14, 10:28 PM
input:48: 'end' expected (to close 'if' at line 15) near <eof>
xem lại coi cậu không thì vào trang check lua :D

Hi Hi thế Cú Pháp Add ĐMP đúng chưa bạn???:)>-:)>-:)>-:)>-:)>-

vd_tt
10-08-14, 10:34 PM
chèn code trong thẻ PHP cho dễ nhìn đi bạn :)