[C++]Block Item's In Maps

12/22/2014 21:44 MrLibya#1
Hallo



This Is For Block Item's In Map :


Beeter Then Quest :





char_item.cpp


Serch :
PHP Code:
static bool IS_SUMMON_ITEM(int vnum) 
after it add :
PHP Code:
static bool IS_ENABLE_ITEM(int vnum)
{
    switch (
vnum)
    {
        case 
39011:
        case 
39012:
        case 
39013:
            return 
true;
    }

    return 
false;
} 
39011,39012,39013 Item's Want To Block It




[Only registered and activated users can see links. Click Here To Register...]


Serch :
PHP Code:
bool IS_BOTARYABLE_ZONE(int nMapIndex) 
Befor IT Add

PHP Code:

bool IS_ENABLE_ITEM_ZONE
(int map_index)
{
    switch (
map_index)
    {
        case 
29:
        case 
30:
        case 
31:
            return 
false;
    }

    return 
true;
} 
29,30,31 Maps Index

Serch :

PHP Code:

 
//PREVENT_TRADE_WINDOW 
Befor It Add :

PHP Code:

    
if (IS_ENABLE_ITEM(item->GetVnum()))
    {
        if (
false == IS_ENABLE_ITEM_ZONE(GetMapIndex()))
        {
            
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("»ç؟ëاز¼ِ ¾ّ½ہ´د´ظ."));
            return 
false;
        }
    } 
[Only registered and activated users can see links. Click Here To Register...]




Note : This System By MrLibya , For [Only registered and activated users can see links. Click Here To Register...] , Ida [Only registered and activated users can see links. Click Here To Register...]
12/22/2014 21:57 Alergix2#2
WTF THATS F*CK AWESOME!!!
Thank you :D
12/22/2014 22:26 Kyuso /..#3
Looks nice thanks for release

- Hausmeister Hardy
12/22/2014 22:30 MrLibya#4
#Edited
12/22/2014 22:33 Tuora#5
Oh nice thanks
12/22/2014 22:39 Prof.MindFreak#6
Already Puplic on metin2 dev
12/22/2014 22:49 MrLibya#7
Quote:
Originally Posted by Prof.MindFreak View Post
Already Puplic on metin2 dev
By Me Nooob :rolleyes:
12/23/2014 08:32 DEMONKING.#8
Oh nice release as always . I think Iam gonna use this :)

Thanks ^_^
12/23/2014 14:07 Shaytan #9
nice release thanks
12/24/2014 10:05 MrTherzon#10
Sehr Sehr Geil Thanks.
12/25/2014 01:52 VeSpacco#11
Vielen Dank.
Und ein Frohes Fest dir auch
__________________
01/08/2015 19:59 UltiGamesGR#12
Where i can put this code in order to work?
01/09/2015 10:12 .Sanii#13
Why you did not block the items in the item using serverside?

PHP Code:
case ITEM_VNUM_X_Y:
    if (
mapindex == xy)
        
ChatPacket(CHAT_TYPE_INFO, "Cant use this shit here");
        return; 
for ex.
01/09/2015 16:11 'Infinite#14
Am i wrong or aren't you able different items for different maps?
Every listed item is blocked on every listed map...