few question

02/20/2013 18:52 yosif#1
hello i make a comand but i want you guys to help me little bit on it..

to remove spell from player..
case "spell":
Client.RemoveSpell(new Spell(true)(Data[3]) });

---------------------------
and i want you to help me to change this... so if , it only show [GM]hello / not [gm] yosif[gm] : my word


and thnx for your help
02/20/2013 19:25 shadowman123#2
u have to show us the the RemoveSpell Void Codes ... i guess the Paramter represent the Spell ID that u would like to remove so ...
Client.RemoveSpell(ushort.Parse(Data[1]));
02/20/2013 19:28 go for it#3
that's so fucked up , umm well here
at Client.RemoveSpell(new Spell(true)(Data[3]) });
the "Client" is the client that sends this command not the player client
so to get to the player client you need to do something like this

Code:
                                    foreach (var pClient in ServerBase.Kernel.GamePool.Values)
                                    {
                                        if (pClient.Entity.Name.ToLower().Contains(Data[1]))
                                        {
/* you need here to remove it from that pclient you mentioned his name at the command but you first should check if he got the spell or not before removing it , else enjoy a cute error on console */
                                        }
                                    }
and just before you ask , to use this you should add his name at the second word in the command , ex: @RemoveSpell Playername SpellID

and at the ann
im speechless , you need to study c# before you even work on a source but ill still help you anyway

for example at
ServerBase.Kernel.SendWorldMessage(new Message("" + client.Entity.Name + " Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);

that
"" + client.Entity.Name + " Message : "
is a string
and basically a string is an array of characters or in easy words it's a sentence
that + sign add more words to that string
that "" is empty string which is useless and could be removed
this client.Entity.Name is your client entity name o-0 lol
and this " Message : " is another string
it add all of them to be "Yourname Message : "
you can simply edit that to whatever you want
forexample
if you want it to display "yosif[gm] Message : "
you should do this
Code:
case "ann":
{
ServerBase.Kernel.SendWorldMessage(new Message("yosif[gm] Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.Center), ServerBase.Kernel.GamePool.Values);
ServerBase.Kernel.SendWorldMessage(new Message("yosif[gm] Message : " + Mess.Remove(0, 3), System.Drawing.Color.Green, Network.GamePackets.Message.World), ServerBase.Kernel.GamePool.Values);
break;
my advice to you is here
[Only registered and activated users can see links. Click Here To Register...]
02/20/2013 19:29 yosif#4
thnx but can you chk to me the other one if you can help me on it please..

well Go_For_It .... i think you didnt understand what iam saying.. so here..

when i use @ann hello all
is show [gm]my name and my massge.
and i want , when i i use it , it show @ann hello all
show like this [GM]hello all
02/20/2013 19:32 go for it#5
Quote:
to remove spell from player..
do you mean by that making the player pm then log it on and then remove it with the command ?
or just remove it by using your pm account from some player ?
02/20/2013 19:33 shadowman123#6
i didnt understand what u would like to do
02/21/2013 06:48 ~Crystaline#7
He just don't like his character name being shown to the client when he use the @ann command.
02/21/2013 10:09 shadowman123#8
PHP Code:
case "ann":
{
ServerBase.Kernel.SendWorldMessage(new Message("Server Announce : " Data[1], System.Drawing.Color.GreenNetwork.GamePackets.Message.Center), Kernel.GamePool.Values);
break;

02/26/2013 20:33 yosif#9
Quote:
Originally Posted by go for it View Post
do you mean by that making the player pm then log it on and then remove it with the command ?
or just remove it by using your pm account from some player ?
i want to use the comand to remove the spell from player without login on it..

ex : @give yosif spell- 1000 this would remove thunder spell from him...
or you make new comand for it thnx alot all... and sorry becose i didnt rply fast i took time cose i have exam every week... couldnt login forum.. sorry

and thnx again for helping me
02/27/2013 00:24 shadowman123#10
i wont spoodfeed u .. try to understand how database delete , insert , update, select data into / from Tables , Rows , Columns then u will know how to handle it