New Scroll

01/20/2010 20:59 copz1337#1
Alright I want to make a new scroll (with it's own name eg: PalaceGates) and I want it to appear in shopping mall too. What do I do?

For Example this is in Character.cs and it's the Twin City scroll. I know I have to make a new one of these but what else besides this?

Code:
                    case 1060020:
                        {
                            if (Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1051)
                            {
                                Teleport(1002, 429, 378);
                                RemoveItem(I);
                            }
                            else
                                MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail.");
                            break;
                        }
01/20/2010 21:04 pro4never#2
You will want to create a new item (last I checked the new source was kinda buggy with creating new items... but simple items like scrolls should be easily done. There are guides posted)

For your item code you will use the item id as the switch number and then enter whatever you want it to do. Eg: teleport to what map

EG

Code:
case ##item number##:
                        {
                            if (Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1051)//maps it CAN'T be used on, edit as you wish
                            {
                                Teleport(1002, 429, 378);//edit to where you want player to be teleported
                                RemoveItem(I);//removes item once it has been used
                            }
                            else
                                MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail.");//error msg is first if is not used
                            break;
                        }
Then edit your shop.dat (client AND server side, again guides have been posted on how)

It's rather simple, just some diff steps.

If you have any problems with the actual item use code lemme know what you are trying to have it to and I'll try to help.
01/20/2010 21:23 Zion~#3
Quote:
Originally Posted by pro4never View Post
You will want to create a new item (last I checked the new source was kinda buggy with creating new items... but simple items like scrolls should be easily done. There are guides posted)

For your item code you will use the item id as the switch number and then enter whatever you want it to do. Eg: teleport to what map

EG

Code:
case ##item number##:
                        {
                            if (Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1051)//maps it CAN'T be used on, edit as you wish
                            {
                                Teleport(1002, 429, 378);//edit to where you want player to be teleported
                                RemoveItem(I);//removes item once it has been used
                            }
                            else
                                MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail.");//error msg is first if is not used
                            break;
                        }
Then edit your shop.dat (client AND server side, again guides have been posted on how)

It's rather simple, just some diff steps.

If you have any problems with the actual item use code lemme know what you are trying to have it to and I'll try to help.
P4N pretty much took the cake but you'll have to duplicate the TC scroll dds and what not create a new custom UID, let both server and client load it, and you're done.
01/20/2010 22:14 copz1337#4
Quote:
Originally Posted by Zion~ View Post
P4N pretty much took the cake but you'll have to duplicate the TC scroll dds and what not create a new custom UID, let both server and client load it, and you're done.
whats a "dds" (if it's client sided i think I know what it is) and how do i make a custom UID?
01/20/2010 23:49 N¡ghtMare ?? WooT#5
I have been looking at your item and it seems like you switched on the things, so is, when you are in jail you can use scrolls.
I think it should look like the last i made.
Code:
                    case 1060020:
                        {
                            if (Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1051) <----if you are in jail maps
                            {
                                Teleport(1002, 429, 378); <-----then you get teleported
                                RemoveItem(I); <-----then it remove scroll
                            }
                            else
                                MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail."); <-----if not in jail, you cant use scrolls
                            break;
                        }
The fixed code:
Code:
                    case 1060020:
                        {
                            if (Loc.Map != 6000 && Loc.Map != 6001 && Loc.Map != 1051)
                            {
                                MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail.");
                            }
                            else
                                Teleport(1002, 429, 378);
                                RemoveItem(I);
                            break;
                        }
If im wrong, let me know

Quote:
Originally Posted by copz1337 View Post
whats a "dds" (if it's client sided i think I know what it is) and how do i make a custom UID?
Is a imagetype file for textures,maps,icons etc.
You can open it with programs like photoshop,Paint.NET,Gimp.
01/21/2010 00:18 pro4never#6
!= means NOT equal.

Therefor any map BUT 6000, 6001, 1051 will allow for scroll to be used.

If you ARE on one of those maps (not covered by the first if) then you will receive the error msg.

!=: not equal
==: equal
01/21/2010 00:29 N¡ghtMare ?? WooT#7
Didnt see the != hahaha, thought it was == :D:D
Damn me XD