[Question]Make PM Unable To Trade , Need Marchant Clerck Script

12/07/2010 14:57 sohaib#1
Hello, i have a conquer private server 5165

-I Need a C# Script Of The Npc who gives Marchant Account( maybe archant clerck)

-How can i make [PM]s Unable To Trade
12/07/2010 17:53 .Beatz#2
Search the forum and you will find how to make PMs able to trade so you just reverse it.

Why don't you write that NPC yourself? It is after all very simple especially if you are using MySql.
12/07/2010 23:25 †he Knight#3
if (EpvpMember.UseGoogle)
{
EpvpMember == GoodMember;
}
else
EpvpMember >= EpicFail;
12/07/2010 23:32 Syst3m_W1z4rd#4
Quote:
Originally Posted by †he Knight View Post
if (EpvpMember.UseGoogle)
{
EpvpMember = GoodMember;
}
else
EpvpMember = EpicFail;
Fixed
12/08/2010 15:42 sohaib#5
i'm using an ini source not MySQL sorry ,and i don't know making a new scripts, just editing some scripts

thanks anyway, i used google and i didn't found, i'm not crazy to post before searching dude

well, i re-searched and i didn't found it , i searched on trade.cs and i didn't found

pelase help me guys pleaaaaaaase, i think that is 1/2 lines that i have to add to trade.cs
12/08/2010 16:21 BioHazarxPaul#6
Quote:
Originally Posted by sohaib View Post
well, i re-searched and i didn't found it , i searched on trade.cs and i didn't found

pelase help me guys pleaaaaaaase, i think that is 1/2 lines that i have to add to trade.cs
[Only registered and activated users can see links. Click Here To Register...]

took me 1 min to find
12/08/2010 18:44 sohaib#7
this Release is not telling you to change something, it's just Copy ~ Past

Please Tell me What I have to change
because i searched in the 1st 30pages of Guides & Released section , and i used the Search engine,

heeeeelp
12/08/2010 18:57 BioHazarxPaul#8
well if you would read what it is saying you can be able to figure out how to add a if statement to make it so pm/gms wont be able to even get to the trading menu example
if (client.player.state != 3 || client.player.state != 4)// 3 and 4 are for gm and pm
then run whats under this if statement else return 0;

something along thos lines.. its matters what source ur using and make sure to put the statement in the right place..
12/08/2010 19:33 sohaib#9
this is what i found
Quote:
if (Who.EntityID == C.MyChar.TradingWith && Who.TradingWith == C.MyChar.EntityID)
{
Who.MyClient.AddSend(Packets.TradePacket(C.MyChar. EntityID, 3));
C.AddSend(Packets.TradePacket(Who.EntityID, 3));
C.MyChar.Trading = true; // changed it to false
Who.Trading = true; // changed it to false
}
}
is that what you mean?
12/08/2010 19:47 BioHazarxPaul#10
figure it out use trail and error i got you started. look through the source and see how it refer to the players and stuff, that is really how you need to learn to work on a source. Is to understand how it works.. If you cant manage to make it so pm's cant trade your not gonna get very far on adding new things or changing things to fit ur liking
12/09/2010 18:22 sohaib#11
it looks boring, i'm not a C# coder, well no one want to give a full Script, so nvm thanks anyway guys