Jump to content
Araştır
  • Diğer seçenekler ...
Sonuçları bul ...
Sonuçları bul ...
ArdaDMR

Karakter rebirth hakkinda

Önerilen Mesajlar

Merhaba,
Çalıştığım DB'de karaktere rebirth basmamakta. Level 83 ve %100 Üzerinde gerekli np ve parada bulunmakta. Fakat NP almadan, 100M alıp 83 %0'a düşürüyor. Sanırım sıkıntı lua'da. Bu konu hakkında çalışan bir mekin lua'sı paylaşabilen olursa sevinirim.

İyi forumlar.

İletiyi paylaş


Link to post
Sitelerde Paylaş
Denermisin kardeşim..


local NPC = 19005;

local Ret = 0;


if (EVENT == 100) then
SelectMsg(UID, 3, 974, 8075, NPC, 4481, 101, 8265, 102, 3019, 203);
end

if (EVENT == 203) then
Ret = 1;
end

if (EVENT == 560) then
SelectMsg(UID, 53, -1, -1);
end

if (EVENT == 204) then
ShowMap(UID, 336);
end

if (EVENT == 101) then
MONEY = HowmuchItem(UID, 900000000);
if (MONEY >= 10000) then
SelectMsg(UID, 53, -1, -1);
else
SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);
end
end

if (EVENT == 205) then
GoldLose(UID, 10000)
SelectMsg(UID, 16, 974, NPC);
end

--Rebirth System
if (EVENT == 102) then
SelectMsg(UID, 3, 974, 11705, NPC, 8246, 208, 8254, 209, 8258 , 210, 8265, 211);
end

if (EVENT == 208) then
SelectMsg(UID, 2, 974, 11686, NPC, 8247,212);
end

if (EVENT == 212) then
SelectMsg(UID, 2, 974, 11687, NPC, 8248,213);
end

if (EVENT == 213) then
SelectMsg(UID, 2, 974, 11688, NPC, 8249,214);
end

if (EVENT == 214) then
SelectMsg(UID, 2, 974, 11689, NPC, 8250,215);
end

if (EVENT == 215) then
SelectMsg(UID, 2, 974, 11690, NPC, 8251,216);
end

if (EVENT == 216) then
SelectMsg(UID, 2, 974, 11691, NPC, 8252,217);
end

if (EVENT == 217) then
SelectMsg(UID, 2, 974, 11692, NPC, 8253,218);
end

if (EVENT == 218) then
SelectMsg(UID, 2, 974, 11693, NPC, 40223,219);
end

if (EVENT == 209) then
SelectMsg(UID, 2, 974, 11695, NPC, 8255,220);
end

if (EVENT == 220) then
SelectMsg(UID, 2, 974, 11696, NPC, 8256,221);
end

if (EVENT == 221) then
SelectMsg(UID, 2, 974, 11697, NPC, 40223,222);
end
if (EVENT == 222) then
MONEY = HowmuchItem(UID, 900000000);
if (MONEY >= 100000000) then
--GoldLose(UID, 100000000)
else
SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);
end
end

if (EVENT == 210) then
Loyalty = CheckLoyalty(UID,10000);
if (Loyalty >= 10000) then
--RobLoyalty(UID, 10000);
--GiveItem(UID, 900579000, 1)
else
SelectMsg(UID, 2, 974, 11699, NPC, 8259,223);
end
end

if (EVENT == 223) then
SelectMsg(UID, 2, 974, 11700, NPC, 8260,224);
end

if (EVENT == 224) then
SelectMsg(UID, 2, 974, 11701, NPC, 8256,225);
end

if (EVENT == 225) then
SelectMsg(UID, 2, 974, 11702, NPC, 40223,226);
end

if (EVENT == 211) then
bLevel = GetLevel(UID);
bRebLevel = GetRebLevel(UID);
bMaxExp = GetMaxExp(UID);
bExp = GetExp(UID);
if (bLevel 4) then
SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);
elseif (bLevel == 83 and bExp SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);
else
SelectMsg(UID, 48, -1, -1);
end
end

if (EVENT == 227) then
end

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı

Denermisin kardeşim..

 

 

 

 

 


local NPC = 19005;

local Ret = 0;





if (EVENT == 100) then

 SelectMsg(UID, 3, 974, 8075, NPC, 4481, 101, 8265, 102, 3019, 203);

end



if (EVENT == 203) then

 Ret = 1;

end



if (EVENT == 560) then

	SelectMsg(UID, 53, -1, -1);

end



if (EVENT == 204) then

 ShowMap(UID, 336);

end



if (EVENT == 101) then

 MONEY = HowmuchItem(UID, 900000000);

 if (MONEY >= 10000) then

  SelectMsg(UID, 53, -1, -1);

 else

  SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);

 end

end



if (EVENT == 205) then

 GoldLose(UID, 10000)

 SelectMsg(UID, 16, 974, NPC);

end



--Rebirth System

if (EVENT == 102) then

SelectMsg(UID, 3, 974, 11705, NPC, 8246, 208, 8254, 209, 8258 , 210, 8265, 211);

end



if (EVENT == 208) then

SelectMsg(UID, 2, 974, 11686, NPC, 8247,212);

end



if (EVENT == 212) then

SelectMsg(UID, 2, 974, 11687, NPC, 8248,213);

end



if (EVENT == 213) then

SelectMsg(UID, 2, 974, 11688, NPC, 8249,214);

end



if (EVENT == 214) then

SelectMsg(UID, 2, 974, 11689, NPC, 8250,215);

end



if (EVENT == 215) then

SelectMsg(UID, 2, 974, 11690, NPC, 8251,216);

end



if (EVENT == 216) then

SelectMsg(UID, 2, 974, 11691, NPC, 8252,217);

end



if (EVENT == 217) then

SelectMsg(UID, 2, 974, 11692, NPC, 8253,218);

end



if (EVENT == 218) then

SelectMsg(UID, 2, 974, 11693, NPC, 40223,219);

end



if (EVENT == 209) then

 SelectMsg(UID, 2, 974, 11695, NPC, 8255,220);

end



if (EVENT == 220) then

 SelectMsg(UID, 2, 974, 11696, NPC, 8256,221);

end



if (EVENT == 221) then

 SelectMsg(UID, 2, 974, 11697, NPC, 40223,222);

end

if (EVENT == 222) then

 MONEY = HowmuchItem(UID, 900000000);

 if (MONEY >= 100000000) then

 --GoldLose(UID, 100000000)

 else

  SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);

 end

end



if (EVENT == 210) then

	Loyalty = CheckLoyalty(UID,10000);

	if (Loyalty >= 10000) then

	--RobLoyalty(UID, 10000);

	--GiveItem(UID, 900579000, 1)

	else

 SelectMsg(UID, 2, 974, 11699, NPC, 8259,223);

 end

end



if (EVENT == 223) then

 SelectMsg(UID, 2, 974, 11700, NPC, 8260,224);

end



if (EVENT == 224) then

 SelectMsg(UID, 2, 974, 11701, NPC, 8256,225);

end



if (EVENT == 225) then

 SelectMsg(UID, 2, 974, 11702, NPC, 40223,226);

end



if (EVENT == 211) then

	bLevel = GetLevel(UID);

	bRebLevel = GetRebLevel(UID);

	bMaxExp = GetMaxExp(UID);

	bExp = GetExp(UID);

	if (bLevel < 83 or bRebLevel > 4) then

		SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);

	elseif (bLevel == 83 and bExp < bMaxExp) then

		SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);

	else

		SelectMsg(UID, 48, -1, -1);

	end

end



if (EVENT == 227) then

end

 


Malesef 😕
-- mesaja ek olarak --

 

 

Alıntı

Denermisin kardeşim..

 

 

 

 

 


local NPC = 19005;

local Ret = 0;





if (EVENT == 100) then

 SelectMsg(UID, 3, 974, 8075, NPC, 4481, 101, 8265, 102, 3019, 203);

end



if (EVENT == 203) then

 Ret = 1;

end



if (EVENT == 560) then

	SelectMsg(UID, 53, -1, -1);

end



if (EVENT == 204) then

 ShowMap(UID, 336);

end



if (EVENT == 101) then

 MONEY = HowmuchItem(UID, 900000000);

 if (MONEY >= 10000) then

  SelectMsg(UID, 53, -1, -1);

 else

  SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);

 end

end



if (EVENT == 205) then

 GoldLose(UID, 10000)

 SelectMsg(UID, 16, 974, NPC);

end



--Rebirth System

if (EVENT == 102) then

SelectMsg(UID, 3, 974, 11705, NPC, 8246, 208, 8254, 209, 8258 , 210, 8265, 211);

end



if (EVENT == 208) then

SelectMsg(UID, 2, 974, 11686, NPC, 8247,212);

end



if (EVENT == 212) then

SelectMsg(UID, 2, 974, 11687, NPC, 8248,213);

end



if (EVENT == 213) then

SelectMsg(UID, 2, 974, 11688, NPC, 8249,214);

end



if (EVENT == 214) then

SelectMsg(UID, 2, 974, 11689, NPC, 8250,215);

end



if (EVENT == 215) then

SelectMsg(UID, 2, 974, 11690, NPC, 8251,216);

end



if (EVENT == 216) then

SelectMsg(UID, 2, 974, 11691, NPC, 8252,217);

end



if (EVENT == 217) then

SelectMsg(UID, 2, 974, 11692, NPC, 8253,218);

end



if (EVENT == 218) then

SelectMsg(UID, 2, 974, 11693, NPC, 40223,219);

end



if (EVENT == 209) then

 SelectMsg(UID, 2, 974, 11695, NPC, 8255,220);

end



if (EVENT == 220) then

 SelectMsg(UID, 2, 974, 11696, NPC, 8256,221);

end



if (EVENT == 221) then

 SelectMsg(UID, 2, 974, 11697, NPC, 40223,222);

end

if (EVENT == 222) then

 MONEY = HowmuchItem(UID, 900000000);

 if (MONEY >= 100000000) then

 --GoldLose(UID, 100000000)

 else

  SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);

 end

end



if (EVENT == 210) then

	Loyalty = CheckLoyalty(UID,10000);

	if (Loyalty >= 10000) then

	--RobLoyalty(UID, 10000);

	--GiveItem(UID, 900579000, 1)

	else

 SelectMsg(UID, 2, 974, 11699, NPC, 8259,223);

 end

end



if (EVENT == 223) then

 SelectMsg(UID, 2, 974, 11700, NPC, 8260,224);

end



if (EVENT == 224) then

 SelectMsg(UID, 2, 974, 11701, NPC, 8256,225);

end



if (EVENT == 225) then

 SelectMsg(UID, 2, 974, 11702, NPC, 40223,226);

end



if (EVENT == 211) then

	bLevel = GetLevel(UID);

	bRebLevel = GetRebLevel(UID);

	bMaxExp = GetMaxExp(UID);

	bExp = GetExp(UID);

	if (bLevel < 83 or bRebLevel > 4) then

		SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);

	elseif (bLevel == 83 and bExp < bMaxExp) then

		SelectMsg(UID, 2, -1, 7116, NPC, 10, 151);

	else

		SelectMsg(UID, 48, -1, -1);

	end

end



if (EVENT == 227) then

end



Bendeki tablo bu;
local NPC = 19005;
local Ret = 0;


if (EVENT == 100) then
SelectMsg(UID, 3, 974, 8082, NPC, 4481, 101,8265, 301, 3019, 203);

end
if (EVENT == 101) then
MONEY = HowmuchItem(UID, 900000000);
if (MONEY >= 10000) then
SelectMsg(UID, 2, 974, 8083, NPC, 4484, 205, 4296, 203);
else
SelectMsg(UID, 2, 974, 8084, NPC, 18, 204);
end
end
if (EVENT == 205) then
MONEY = HowmuchItem(UID, 900000000);
if (MONEY >= 10000) then
IsTakeToday = GetUserDailyOp(UID,1);
if (IsTakeToday == 1) then
GoldLose(UID, 10000)
SelectMsg(UID, 16, 974, NPC);
else
SelectMsg(UID, 2, -1, 9280, NPC, 10, 241);
end
end
end

if (EVENT == 301) then
SelectMsg(UID, 3, 974, 11705, NPC, 8246, 310,8254, 340, 8258, 370, 8265,400);
end
if(EVENT == 310)then
QUESTST = GetEventStatus(UID,1120)
if(QUESTST == 1) then
SelectMsg(UID, 3, 974, 11706, NPC, 65, 319);
elseif( QUESTST == 2)then
SelectMsg(UID, 3, 974, 11706, NPC, 10, -1);

elseif (QUESTST == -1) then

if(GetExpPercent(UID) == 100)then
SelectMsg(UID, 3, 974, 11686, NPC, 8247, 311);
else
SelectMsg(UID, 3, 974, 11694, NPC, 10, -1);

end
end
end

if(EVENT == 311)then
SelectMsg(UID, 3, 974, 11687, NPC, 8248, 312);
end

if(EVENT == 312)then
SelectMsg(UID, 3, 974, 11688, NPC, 8249, 313);
end

if(EVENT == 313)then
SelectMsg(UID, 3, 974, 11689, NPC, 8250, 314);
end

if(EVENT == 314)then
SelectMsg(UID, 3, 974, 11690, NPC, 8251, 315);
end

if(EVENT == 315)then
SelectMsg(UID, 3, 974, 11691, NPC, 8252, 316);
end

if(EVENT == 316)then
SelectMsg(UID, 3, 974, 11692, NPC, 8253, 317);
end

if(EVENT == 317)then
SaveEvent(UID,7278)
end


if(EVENT == 319) then
LEVEL = GetLevel(UID)
EXP = GetExpPercent(UID)
if(LEVEL == 83 and EXP == 100) then
ExpChange(UID,-1)
SaveEvent(UID,7279)
else
EVENT = 310
end
end
if(EVENT == 340) then
QUESTST1 = GetEventStatus(UID,1120)
QUESTST2 = GetEventStatus(UID,1121)
if (QUESTST1 ~= 2)then
SelectMsg(UID, 3, 974, 11710, NPC, 10, -1);
elseif(QUESTST2 == -1)then
SelectMsg(UID, 3, 974, 11696, NPC, 8256, 341);
elseif(QUESTST2 == 1)then
SelectMsg(UID, 3, 974, 11698, NPC, 65, 343);
end

end
if(EVENT == 341) then
SelectMsg(UID, 3, 974, 11697, NPC, 65, 342);
end

if(EVENT == 342) then
SaveEvent(UID,7283)
end

if(EVENT == 343) then
LEVEL = GetLevel(UID)
MONEY = HowmuchItem(UID, 900000000)

if(LEVEL == 83 and MONEY >= 100000000) then
GoldLose(UID,100000000)
SaveEvent(UID,7284)
else
SelectMsg(UID, 3, 974, 11698, NPC, 10, -1);
end
end


if(EVENT == 370) then
QUESTST1 = GetEventStatus(UID,1120)
QUESTST2 = GetEventStatus(UID,1121)
QUESTST3 = GetEventStatus(UID,1122)

if (QUESTST1 ~= 2)then
SelectMsg(UID, 3, 974, 11710, NPC, 10, -1);
elseif (QUESTST2 ~= 2)then
SelectMsg(UID, 3, 974, 11711, NPC, 10, -1);
elseif(QUESTST3 == -1)then
SelectMsg(UID, 3, 974, 11699, NPC, 8259, 371);
elseif(QUESTST3 == 1) then
SelectMsg(UID, 3, 974, 11703, NPC, 8261, 375);
end

end


if(EVENT == 371) then
SelectMsg(UID, 3, 974, 11700, NPC, 8260, 372);
end

if(EVENT == 372) then
SelectMsg(UID, 3, 974, 11701, NPC, 8256, 373);
end

if(EVENT == 373) then
SelectMsg(UID, 3, 974, 11702, NPC, 65, 374);
end

if(EVENT == 374) then
SaveEvent(UID,7288);
end


if(EVENT == 375) then
LEVEL = GetLevel(UID)
NP = CheckLoyalty(UID)

if(LEVEL == 83 and NP >= 10000) then
--RobLoyalty(UID,10000)
--GiveItem(UID,900579000,1)
--SaveEvent(UID,7276)
--SaveEvent(UID,7281)
--SaveEvent(UID,7286)
--SaveEvent(UID,7291)
else
SelectMsg(UID, 3, 974, 11708, NPC, 10, -1);
end
end
if(EVENT == 400) then
SelectMsg(UID, 3, 974, 11704, NPC, 8263, 401, 8264,402);
end

if(EVENT == 401) then
LEVEL = GetLevel(UID)
ITEM = HowmuchItem(UID,900579000)
NP = CheckLoyalty(UID)
EXP = GetExpPercent(UID)
--if(ITEM > 0 and LEVEL == 83) then
if(LEVEL == 83 and NP >= 10000 and EXP == 100) then
SelectMsg(UID, 48, -1, -1, NPC);
else
SelectMsg(UID, 3, 974, 11704, NPC, 27, 402);
end
end

if(EVENT == 402) then
Ret = -1
end

İletiyi paylaş


Link to post
Sitelerde Paylaş

Tekrar merhaba,
Lua'yı editleye editleye rebirth için tüm gerekli görevleri aktif ettim. Np gitmekte, Exp 0'a düşmekte, 100m'de para gitmekte, üzerime qualitification of rebirth kağıdıda gelmekte. Daha sonrada Rebirth basarken istediği stat pointlerin tablosuda çıkıyor. Ama artık son işlem olan 2 stat pointide verdikten sonra hiçbirşey olmuyor. Karakter ne 83/1 oluyor. Nede üzerindeki rebirth simgesi geliyor. Var mı yardımcı olabilecek birisi ?

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
Tekrar merhaba,
Lua'yı editleye editleye rebirth için tüm gerekli görevleri aktif ettim. Np gitmekte, Exp 0'a düşmekte, 100m'de para gitmekte, üzerime qualitification of rebirth kağıdıda gelmekte. Daha sonrada Rebirth basarken istediği stat pointlerin tablosuda çıkıyor. Ama artık son işlem olan 2 stat pointide verdikten sonra hiçbirşey olmuyor. Karakter ne 83/1 oluyor. Nede üzerindeki rebirth simgesi geliyor. Var mı yardımcı olabilecek birisi ?



CUser::ClassChange içinde opcode == CHANGE_REBIRTH_STAT
burayı kontrol et yada böyle bişey varmı onuda kontrol et

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
bMaxExp = GetMaxExp(UID); bunu okumuyor olabilir


GetMaxExp bunu okumuyor gameserver da şu şekilde bir uyarı veriyor

ERROR: [19005_Mackin.lua] The following error was provided.
MESSAGE: ./Quests/19005_Mackin.lua:117: attempt to call global 'GetMaxExp' (a nil value)

getmaxEXP SRC eklenmesi gerekiyor sanırım sizde var mı bu fonksiyon acaba?

İletiyi paylaş


Link to post
Sitelerde Paylaş

×
×
  • Yeni Oluştur...