Register for your free account! | Forgot your password?

You last visited: Today at 11:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE]MAKE SCROLLS WORK CoEmuV2

Discussion on [RELEASE]MAKE SCROLLS WORK CoEmuV2 within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old 06/16/2009, 01:15   #16
 
CIRASH's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 259
Received Thanks: 73
Well, i don't know how to code. I learn by reading the code presented and altering to the things i want. Maybe, one day, ill actually learn real coding but for now this suits me just fine.
CIRASH is offline  
Old 06/24/2009, 22:09   #17
 
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 1
guys i know what i will say make u all be mad but how i add this code can some explane it to me sorry
0105653642 is offline  
Old 07/02/2009, 08:56   #18
 
elite*gold: 20
Join Date: Jul 2007
Posts: 613
Received Thanks: 486
Quote:
Originally Posted by scottdavey View Post
Yeah i know, i'm coding at 3am and i forgot to reload the debug. My fault lol.

Rewritten most npcs and made market/tg save your previous map, probably gonna be lots of typos atm i can barely see lol.
i think u dont need to rewrite any NPCs to do it , u may simply add a new variable to the character named PrevMap containing the current map be4 teleporting to Market or TG then when asking to leave them u retrieve that prevmap , it would also be better if u create a new func retrieving the coords and call it by that prevmap it will also be usefull to call a rev point when asking for revive

i will try to give a sample for it

if u gonna put it at NpcTalk.cs

Code:
private static int[] GetCords(int Map_)
        {
            int []MapCoords=new int[2];
            switch (Map_)
            {
                case 1002:
                    {
                        MapCoords[0] = 438; MapCoords[1] = 377;
                        break;
                    }
                case 1011:
                    {
                        MapCoords[0] = 232; MapCoords[1] = 260;
                        break;
                    }
                case 1020:
                    {
                        MapCoords[0] = 565; MapCoords[1] = 565;
                        break;
                    }
                case 1000:
                    {
                        MapCoords[0] = 496; MapCoords[1] = 649;
                        break;
                    }
                case 1015:
                    {
                        MapCoords[0] = 723; MapCoords[1] = 573;
                        break;
                    }
            }
            return MapCoords;
        }
then when u ask any teleporter to get u to Market or TG add this be4 the teleport line

Code:
CSocket.Client.PrevMap = Convert.ToInt32(CSocket.Client.Map);
for example

Code:
else if (LinkBack == 2)//Market
                        {
                            CSocket.Client.PrevMap = Convert.ToInt32(CSocket.Client.Map);
                            Teleport(1036, 211, 196, 0, CSocket);
                        }
then at the Market/Tg controller section put this

Code:
else if (LinkBack == 1)
                        {
                            int Map_ = CSocket.Client.PrevMap;
                            int[] Coords = GetCords(Map_);
                            Teleport(Map_, Coords[0], Coords[1], 0, CSocket);
                        }
hehe , that was a complete code for it , anyhow u will also need to add this to be a real complete code

at Character.cs

Code:
public int PrevMap = 1002;
now u have a complete restore previous map code
samehvan is offline  
Old 07/02/2009, 09:12   #19
 
yagnesh_shenoy's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 90
Received Thanks: 5
thxs i try this now
yagnesh_shenoy is offline  
Old 07/02/2009, 09:42   #20
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by unknownone View Post
Use a ******* database. Have you not all noticed that you are practically repeating the same code 15 times and making it impossible to edit points add new points without recompiling. lrn2code.

Code:
ScrollPoint sp = Select().From("scroll_points").Where(Equals("scoll_id", MyItem));
Handler.Teleport(sp.Map, sp.X, sp.Y, CSocket);
Thanks alot... I was just about to go to bed and then I decided to code a random scroll system instead...

I haven't tested it yet but it's implemented into my source now w/o errors so hopefully it will work once I add some locations to database.

What I have it doing is random scrolls will read the map you are on, load random locations from the database for that map, pick a random number (number of locations on that map setup) and teleport you to that location. That way it randomly sends you to a spot on your current map.

Dunno if I'll ever actually code all the item side of it but for now the source/database part is done. Thanks for depriving me of yet more sleep.
pro4never is offline  
Old 11/11/2009, 16:36   #21
 
elite*gold: 0
Join Date: Dec 2006
Posts: 133
Received Thanks: 16
Quote:
case 1060020: //TC Scroll
{
if ((int)CSocket.Client.Map == 9999) //Jail Map ID
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You are jailed! You can't go out." + Item.ItemID, Struct.ChatType.Top));
}
else
{
Handler.Teleport(1002, 430, 378, 0, CSocket);
Delete = true;
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "Teleported to Twin City." + Item.ItemID, Struct.ChatType.Top));
}
break;
}
This is mine
martoon is offline  
Reply


Similar Threads Similar Threads
[Release]How To Make SD Hack Work!!!
08/10/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 37 Replies
I Can Tell You The Trick To Make It Work Ok Here's The Steps: 1.)Make A Folder On Your DeskTop And Name It SD Hack 2.)Now On SD Hack Folder Make A 2 Folders Named Original And Hack Folders 3.)Go To GrandChase Folder 4.)Go To Stage Folder, Then Go To Ai Folder 5.)Copy The Ai.Kom 6.)Go Back To SD Hack Folder 7.)Go To Original Folder Then Paste The Ai.Kom(so It Means It's The Orginal File
[Release]How Can We Make No Recoil Work
12/13/2009 - Soldier Front Hacks, Bots, Cheats & Exploits - 56 Replies
U need 2 Have An Old SF Installer Or SF That Never Patched Until January 1 2009-March 9, 2009 Go TO SF FOlder Open Version InFo Recommended Notepad Change 10070 to 10072 Now You Can Make No Recoil Work.... That's All
reverse return scrolls wont work..
03/27/2009 - Silkroad Online - 3 Replies
every time i die. respawn in town and repot. i try to go back to my hunting area and it keeps saying "Cannot Find Target" im like wtf? so i tried targeting myself and click return to where i died last. and it still gives me the same "Cannot Find Target" How can i use my reverse scrolls now?
[Release] How to make client v1130 work with oem
11/21/2008 - EO PServer Guides & Releases - 4 Replies
1st Download a client v1130 from eo.91.com 2nd Download any Paladin server patch on it 3rd Repatch ur client to the latest TQ Version 4th make an oem.dat and .ini well it worked with me but it closes when it says virefying account Cuz it needs new acc - msg - npc that can work with the manniquin Hope u enjoy :)
Release hints of how to make 3.04 work
06/01/2008 - Dekaron - 47 Replies
Seeing a lot of you just whine and whine for the hack instead of digging your brains into the problem. Also, you blame on UG people do not public it for you guys; yet, someone is not in UG at all and still make it work 1 hour right after the patch was out! So, here it is . It is not full release but just giving you very helpful hints . To make it work , you have to downgrade to old version and use an appropriate path for the files. Btw, use your damn brain when vaccing because when...



All times are GMT +1. The time now is 11:31.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.