burak111
Selam Öncelikle şunu belirteyim istediginiz gibi degiştirebilir . veya farklı alanlarla kullanılabilir.
Öncelikle NPC Ekliyelim.
insert into [K_NPC] values ('29100','WWW.KO-MASTER.COM','31200','100','0','0','3','4','33','1','3','3','0','90','100','500','120000','0','0','20000','497','497','4000','1500','0','0','1000','0','0','0','250','250','250','250','250','250','250','90','7','14','35','32000','21510','0',);
insert into [K_NPCPOS] values ('21','29100','100','0','0','0','0','824','552','824','552','824','552','824','552','1','1800','0','0','NULL21');
Quest_Helper Ekliyecegimiz LUA
insert into [QUEST_HELPER] values ('27100','2','1','0','5','3','1','21','29100','0','0','100','0','0','0','KO-MASTER.COM')
Şimdi quest_Helper ' e Ekledigimiz İsim İle Lua Oluşturalım
local UserClass;
local QuestNum;
local Ret = 0;
local NPC = 27100;
if EVENT == 100 then
SelectMsg(UID, 3, -1, 6038, NPC, 7200, 150,7201,151,7203,152,7217,153);
end
local ITEMA = 0;
--Rogue Chitin 9 SET
if EVENT == 150 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,255001071)
GiveItem(UID,255002071)
GiveItem(UID,255003071)
GiveItem(UID,255004071)
GiveItem(UID,255005071)
NpcMsg(UID, 4886 , NPC )
else
--
end
end
--Warrior Chitin 9 Set
if EVENT == 151 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,215001011)
GiveItem(UID,215002011)
GiveItem(UID,215003011)
GiveItem(UID,215004011)
GiveItem(UID,215005011)
NpcMsg(UID, 4886 , NPC )
end
end
--Mage Chitin 9 Set
if EVENT == 152 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,275001041)
GiveItem(UID,275002041)
GiveItem(UID,275003041)
GiveItem(UID,275004041)
GiveItem(UID,275005041)
NpcMsg(UID, 4886 , NPC )
end
end
-- Priest Chitin 9 Set
if EVENT == 153 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,295001041)
GiveItem(UID,295002041)
GiveItem(UID,295003041)
GiveItem(UID,295004041)
GiveItem(UID,295005041)
NpcMsg(UID, 4886 , NPC )
end
end
Öncelikle NPC Ekliyelim.
insert into [K_NPC] values ('29100','WWW.KO-MASTER.COM','31200','100','0','0','3','4','33','1','3','3','0','90','100','500','120000','0','0','20000','497','497','4000','1500','0','0','1000','0','0','0','250','250','250','250','250','250','250','90','7','14','35','32000','21510','0',);
insert into [K_NPCPOS] values ('21','29100','100','0','0','0','0','824','552','824','552','824','552','824','552','1','1800','0','0','NULL21');
Quest_Helper Ekliyecegimiz LUA
insert into [QUEST_HELPER] values ('27100','2','1','0','5','3','1','21','29100','0','0','100','0','0','0','KO-MASTER.COM')
Şimdi quest_Helper ' e Ekledigimiz İsim İle Lua Oluşturalım
local UserClass;
local QuestNum;
local Ret = 0;
local NPC = 27100;
if EVENT == 100 then
SelectMsg(UID, 3, -1, 6038, NPC, 7200, 150,7201,151,7203,152,7217,153);
end
local ITEMA = 0;
--Rogue Chitin 9 SET
if EVENT == 150 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,255001071)
GiveItem(UID,255002071)
GiveItem(UID,255003071)
GiveItem(UID,255004071)
GiveItem(UID,255005071)
NpcMsg(UID, 4886 , NPC )
else
--
end
end
--Warrior Chitin 9 Set
if EVENT == 151 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,215001011)
GiveItem(UID,215002011)
GiveItem(UID,215003011)
GiveItem(UID,215004011)
GiveItem(UID,215005011)
NpcMsg(UID, 4886 , NPC )
end
end
--Mage Chitin 9 Set
if EVENT == 152 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,275001041)
GiveItem(UID,275002041)
GiveItem(UID,275003041)
GiveItem(UID,275004041)
GiveItem(UID,275005041)
NpcMsg(UID, 4886 , NPC )
end
end
-- Priest Chitin 9 Set
if EVENT == 153 then
Loyalty = CheckLoyalty(UID,150000);
if Loyalty > 150000 then
RobLoyalty(UID,150000)
GiveItem(UID,295001041)
GiveItem(UID,295002041)
GiveItem(UID,295003041)
GiveItem(UID,295004041)
GiveItem(UID,295005041)
NpcMsg(UID, 4886 , NPC )
end
end
Moderatör tarafında düzenlendi: