Char_item.cpp
bool IS_BOTARYABLE_ZONE(int nMapIndex) // arat
//altına ekle
bool WAR_MOUNT_USE_BLOCK_MAP(int map_index)
{
if(CWarMapManager::instance().IsWarMap(map_index))
return true;
switch (map_index)
{
case 113: // OX
case 111: // lonca
case 110: // lonca
case 103: // ronark
case 28: // duello arenası
return false;
}
return true;
}
//arat
if (false == FN_check_item_sex(this, item))
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¼ºº°ÀÌ ¸ÂÁö¾Ê¾Æ ÀÌ ¾ÆÀÌÅÛÀ» »ç¿ëÇÒ ¼ö ¾ø½À´Ï´Ù."));
return false;
}
//altına düzelt kendine göre ekle /**binektype bineksubtype kısımlarını*/
if (item->GetType() == binektype && item->GetSubType() == bineksubtype)
{
if (false == WAR_MOUNT_USE_BLOCK_MAP(GetMapIndex()) || GetMapIndex() >= 1100000 && GetMapIndex() <= 1120000)
{
ChatPacket(CHAT_TYPE_INFO, "Bu bölgede kullanamazsın. ");
return false;
}
}
input_loginde void CInputLogin::Entergame(
böyle bir fonksiyon var içinde
else if (ch->GetMapIndex() == 113) //arat
{
//altına ekle
LPITEM item3 = ch->GetWear(WEAR_COSTUME_MOUNT);
if(ch->IsRidingMount())
{
ch->UnequipItem(item3);
}
@metinpolat işinizi görebilir deneme imkanınız olmadı mı?
Şimdi denedim çalışıyor fakat ışınlanma yüzüğüne basınca da bu bölgede kullanamazsın diye uyarı veriyor ox lonca savaşları veya ws turnuvasına giren oyuncular başka yere gitmek isteseler gidemicekler@metinpolat işinizi görebilir deneme imkanınız olmadı mı?
Binekleriniz giymeli değilse quest ile engelleyin.Şimdi denedim çalışıyor fakat ışınlanma yüzüğüne basınca da bu bölgede kullanamazsın diye uyarı veriyor ox lonca savaşları veya ws turnuvasına giren oyuncular başka yere gitmek isteseler gidemicekler
Işınlanma yüzüğünün de type ve subtypesi 18 0 olduğu için öyle subtypeyi 1 yapsam düzelir diye düşünüyorum ama çalışırmı bilmiyorum denicem.
Birde ata binmiş şekilde mapa gidiliyor galiba input logindeki kodu eklersem o da düzelicek ama build alırken hata alıyorum input logindeki kodda.
11538 eklentisini görüntüle
quest butun_binekler begin state start begin
when 71124.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20114, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,30,2400)
end
end
when 71125.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20115, 28800)
pc.mount_bonus(apply.ATTBONUS_MONSTER,20,28800)
end
end
when 71126.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20116, 28800)
pc.mount_bonus(apply.CRITICAL_PCT,10,28800)
end
end
when 71127.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20117, 28800)
pc.mount_bonus(apply.CRITICAL_PCT,10,28800)
end
end
when 71128.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20118, 28800)
pc.mount_bonus(apply.DEF_GRADE_BONUS,100,28800)
end
end
when 71131.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20190, 30000)
end
end
when 71132.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20190, 60000)
end
end
when 71133.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 then
syschat("O-X yarışmasında binek kullanamazsın.")
else
pc.mount(20190, 12000)
end
end
when 71134.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20190, 18000)
end
end
when 71137.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20191, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71138.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20192, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71139.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20193, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71140.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20194, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71141.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20195, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71142.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20196, 28800)
pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800)
end
end
when 71161.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20219 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc . mount_bonus ( apply . ATT_GRADE_BONUS , 50 , 28800 )
end
end
when 71164.use begin
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20219 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc . mount_bonus ( apply . ATT_GRADE_BONUS , 50 , 28800 )
end
end
when 71120.use begin
if pc.get_level() >= 90 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20113, 300)
pc.mount_bonus(apply.DEF_GRADE_BONUS,41,300)
pc.mount_bonus(apply.ATT_GRADE_BONUS,320,300)
pc.removeitem(71120, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71116.use begin
if pc.get_level() >= 80 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20111, 300)
pc.mount_bonus(apply.DEF_GRADE_BONUS,141,300)
pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300)
pc.removeitem(71116, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71114.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 then
syschat("O-X yarışmasında binek kullanamazsın.")
elseif pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Lonca Alanında At Çagıramazsın.")
else
pc.mount(20110, 300)
pc.mount_bonus(apply.DEF_GRADE_BONUS,116,300)
pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300)
pc.removeitem(71114, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71181.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20213 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71181, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71182.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20214 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71182, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71183.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20215 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71183, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71184.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20217 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71184, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71185.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20216 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71185, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71186.use begin
if pc.get_level() >= 75 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc . mount ( 20218 , 28800 )
pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 )
pc.removeitem(71186, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
when 71118.use begin
if pc.get_level() >= 85 then
if pc.is_mount() then
say("Şu anda biniyorsun zaten! Hayvanını değiştirmek")
say("için, önce binmiş olduğundan inmen lazım.")
say("")
elseif pc.is_polymorphed() then
say("Dönüşmüş haldeyken binek kullanamazsın.")
elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then
syschat("Bu alanda binek çagıramazsın!")
else
pc.mount(20112, 300)
pc.mount_bonus(apply.DEF_GRADE_BONUS,166,300)
pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300)
pc.removeitem(71118, 1)
end
else
say("")
say("Seviyen çok düşük!")
say("")
end
end
end
end
Haritaya binek üstündeyken gidebiliyorlar ama değil miBinekleriniz giymeli değilse quest ile engelleyin.
Örn:
Aslan mührü vs. için:quest butun_binekler begin state start begin when 71124.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20114, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,30,2400) end end when 71125.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20115, 28800) pc.mount_bonus(apply.ATTBONUS_MONSTER,20,28800) end end when 71126.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20116, 28800) pc.mount_bonus(apply.CRITICAL_PCT,10,28800) end end when 71127.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20117, 28800) pc.mount_bonus(apply.CRITICAL_PCT,10,28800) end end when 71128.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20118, 28800) pc.mount_bonus(apply.DEF_GRADE_BONUS,100,28800) end end when 71131.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20190, 30000) end end when 71132.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20190, 60000) end end when 71133.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 then syschat("O-X yarışmasında binek kullanamazsın.") else pc.mount(20190, 12000) end end when 71134.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20190, 18000) end end when 71137.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20191, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71138.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20192, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71139.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20193, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71140.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20194, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71141.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20195, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71142.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20196, 28800) pc.mount_bonus(apply.EXP_DOUBLE_BONUS,20,28800) end end when 71161.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20219 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc . mount_bonus ( apply . ATT_GRADE_BONUS , 50 , 28800 ) end end when 71164.use begin if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20219 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc . mount_bonus ( apply . ATT_GRADE_BONUS , 50 , 28800 ) end end when 71120.use begin if pc.get_level() >= 90 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20113, 300) pc.mount_bonus(apply.DEF_GRADE_BONUS,41,300) pc.mount_bonus(apply.ATT_GRADE_BONUS,320,300) pc.removeitem(71120, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71116.use begin if pc.get_level() >= 80 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20111, 300) pc.mount_bonus(apply.DEF_GRADE_BONUS,141,300) pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300) pc.removeitem(71116, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71114.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 then syschat("O-X yarışmasında binek kullanamazsın.") elseif pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Lonca Alanında At Çagıramazsın.") else pc.mount(20110, 300) pc.mount_bonus(apply.DEF_GRADE_BONUS,116,300) pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300) pc.removeitem(71114, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71181.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20213 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71181, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71182.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20214 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71182, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71183.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20215 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71183, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71184.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20217 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71184, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71185.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20216 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71185, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71186.use begin if pc.get_level() >= 75 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc . mount ( 20218 , 28800 ) pc . mount_bonus ( apply . EXP_DOUBLE_BONUS , 20 , 28800 ) pc.removeitem(71186, 1) end else say("") say("Seviyen çok düşük!") say("") end end when 71118.use begin if pc.get_level() >= 85 then if pc.is_mount() then say("Şu anda biniyorsun zaten! Hayvanını değiştirmek") say("için, önce binmiş olduğundan inmen lazım.") say("") elseif pc.is_polymorphed() then say("Dönüşmüş haldeyken binek kullanamazsın.") elseif pc.get_map_index() == 113 or pc.get_map_index() >= 1100000 and pc.get_map_index() <= 1100005 then syschat("Bu alanda binek çagıramazsın!") else pc.mount(20112, 300) pc.mount_bonus(apply.DEF_GRADE_BONUS,166,300) pc.mount_bonus(apply.ATT_GRADE_BONUS,120,300) pc.removeitem(71118, 1) end else say("") say("Seviyen çok düşük!") say("") end end end end
İnput logine o kodu ekleyin ya da quest ile fonksiyon çalıştırın binek üstündeyse indirsin göndersinHaritaya binek üstündeyken gidebiliyorlar ama değil mi
Hocam binekler giyilmiyor mühüre tıklayınca geliyor direk type 18 yani ITEM_QUEST suptype da 0 olarak ayarlı navicatta ışınlanma yüzüğüde type 18 suptype 0 olduğu için ısınlanma yüzüğüde engelleniyor haliyleBinekler giyiliyor ise belki subtype kısmını yanlış yapmış olabilirsiniz. Binektype ile bineksubtype kısmını doğru düzenlediğinizden emin misiniz?
Şu an mobilim ama type: ITEM_USE subtype: COSTUME_MOUNT gibi bir şey olması lazım. İtem protodan binek mühürlerine bakabilirsin.
Ekliyorum ama buildde hata veriyor bir arkadaştan yardım alacam o konudaİnput logine o kodu ekleyin ya da quest ile fonksiyon çalıştırın binek üstündeyse indirsin göndersin
if (ch->IsHorseRiding() == true)
{
ch->StopRiding();
ch->HorseSummon(false);
}
if (ch->GetMountVnum())
{
ch->StopRiding();
}