Pharmacist Dialog Param

10/18/2011 18:40 abdeen#16
Quote:
Originally Posted by pro4never View Post
.... pharmacist is just a shop. You open it just like any other shop.

I use talking shop npcs all over my source. It's just a matter of sending general data with data1 as 32 with action type being 160


Seeing as I'm sure people will still be asking me...

Code:
 scope.SetVariable("OpenShop", new Func<uint, int>(delegate(uint shopID)
                    {
                        Packet.DataPacket pack = new Packet.DataPacket();
                        pack.Action = Core.Enum.DataAction.OpenUpgrade;
                        pack.Id = user.UID;
                        pack.Data1 = 32;
                        pack.Data3Low = user.X;
                        pack.Data3High = user.Y;
                        pack.Timestamp = shopID;
                        user.Send(pack);
                        return 0;
                    }));
That's what I use for my python methods for opening a shop so I can just say OpenShop(1) or w/e the shop id is.
i can`t edit it to work on my source !

i am still learing C# and i am new , i just need little help with it , or how to modify it to work with my source .
10/19/2011 00:48 pro4never#17
Quote:
Originally Posted by abdeen View Post
i can`t edit it to work on my source !

i am still learing C# and i am new , i just need little help with it , or how to modify it to work with my source .
This won't be of any use to you unless you learn some C#.

This is enabling me to use python external scripts that interact with my C# source as well as using a completely different method of building and sending packets then your source most likely has...

So yes... it's useful in that I answered the question but not so useful because it requires people to still know what they're doing inside their source.
10/19/2011 00:54 abdeen#18
Quote:
Originally Posted by pro4never View Post
This won't be of any use to you unless you learn some C#.

This is enabling me to use python external scripts that interact with my C# source as well as using a completely different method of building and sending packets then your source most likely has...

So yes... it's useful in that I answered the question but not so useful because it requires people to still know what they're doing inside their source.
you are right , i am agree with you in this point

PHP Code:
" it requires people to still know what they're doing inside their source. " 
but no one was born a coder , and i am just asking , to learn. if you fixed the problem so i`ll check what have you changed/edited , and i`ll be learned how to fix this issue in the future.


i want to code npc to give a jar quest to kill a limited mount of monsters , i coded the npc but he gives the jar is reading monster type , pheeasent monsters , and count of killed monsters is always loading , i wanna know how to code it for any monster i want and count of monsters required to kill , and how to make check if the player finished the quest and has killed all required monsters or not .

and there another code i needed , is a code to send all players in a map to another one .
10/19/2011 04:53 Lateralus#19
I was born a coder.

Just kidding, but you'll never *learn* a language focusing on implementation like that.
10/19/2011 18:35 abdeen#20
Quote:
Originally Posted by Lateralus View Post
I was born a coder.

Just kidding, but you'll never *learn* a language focusing on implementation like that.
i am thinking about your post if its helped me or not O.o