[Help] How To make teleport item

07/20/2009 17:49 nestreys#1
Can someone help me how to make my own scroll item or item teleporter on LOTF source? Please help me. Thanks.
07/20/2009 18:02 n0mansland#2
Well I would make an LOTF example but I don't use it (I have an alright source that I don't use) but I don't know what .cs I should look in... (Used to CoEmu)

It would look something like this... <--- Easily Converted if you're OK at coding.

Code:
                case ITEMID:
                    {
                      Teleport(MAP, X, Y, INSTANCE, CSocket);
                      Text("You've been teleported to....", CSocket);
                      Link("Thanks a lot!", 255, CSocket);
                      End(CSocket);
 CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You've been teleported.", Struct.ChatType.Top));
                        {
                            Delete = true;
}
                            break;
                        }
Then of course if that's not what you're looking for... There's many guides on how to make your own custom items just use "Search" and you will find quite a few.
07/20/2009 18:20 raidenx123#3
In Character.cs find the ID of any scroll, copy that whole thing, paste it above or below.

Now replace with New ID (for item) and change the map + cords
07/20/2009 18:40 nestreys#4
Okay. Thanks a Lot.