little problem

12/31/2017 21:46 BelieveGhost#1
Hi elitepvp

i wanna code to make no use pots on map i want ..

i using source 5165..

what it should be ?
12/31/2017 21:52 Spirited#2
We're not here to program for you. It's a simple if else statement. Come on.
If you're really that useless, you probably shouldn't be running a server.
12/31/2017 22:27 BelieveGhost#3
Quote:
Originally Posted by Spirited View Post
We're not here to program for you. It's a simple if else statement. Come on.
If you're really that useless, you probably shouldn't be running a server.

i know and you are right, but im not asking for full event or big deal.. i only need that step to done my event.

i was trying to code but there something wrong..
01/01/2018 01:14 pintinho12#4
Well, which source are you using?
I have two balls but none is a crystal ball.
01/01/2018 09:41 BelieveGhost#5
Quote:
Originally Posted by pintinho12 View Post
Well, which source are you using?


newestco
01/01/2018 12:52 snipetime#6
Quote:
Originally Posted by BelieveGhost View Post
newestco


Code:
public void UseItem(Item I)
        {
            try
            {
                if (I.ID >= 1000000 && I.ID <= 1002050) // mp and hp pots
                {
                    if (!(DateTime.Now > UnableToUseDrugs.AddSeconds(UnableToUseDrugsFor)))
                    {
                        MyClient.LocalMessage(2005, "You've been poisoned. You cannot use drugs for a while.");
                        return;
                    }
                    else if (Loc.Map == 1002) // tc map
                    {
                        MyClient.LocalMessage(2005, "You cannot use drugs on this map !");
                        return;
                    }
                }
01/01/2018 13:37 boDil#7
Spoon-feeding should really be a bannable offense ...
01/01/2018 13:46 BelieveGhost#8
Quote:
Originally Posted by snipetime View Post
Code:
public void UseItem(Item I)
        {
            try
            {
                if (I.ID >= 1000000 && I.ID <= 1002050) // mp and hp pots
                {
                    if (!(DateTime.Now > UnableToUseDrugs.AddSeconds(UnableToUseDrugsFor)))
                    {
                        MyClient.LocalMessage(2005, "You've been poisoned. You cannot use drugs for a while.");
                        return;
                    }
                    else if (Loc.Map == 1002) // tc map
                    {
                        MyClient.LocalMessage(2005, "You cannot use drugs on this map !");
                        return;
                    }
                }

Thx for understating sir ;)
01/01/2018 14:09 snipetime#9
Quote:
Originally Posted by boDil View Post
Spoon-feeding should really be a bannable offense ...
Yea that's the solution... I know Spoon-feeding is not good, he will learn notting but heck conquer online community is dead... Only a few people still help others.
01/01/2018 14:18 wshbr#10
#closed (demands for code)