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.
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.
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?
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
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.
pet scroll 01/19/2010 - Grand Chase - 2 Replies plss give me tips how to get a scroll of lil gaiko and kaze aze thanks :handsdown:
Int and Str Scroll? 08/20/2009 - Silkroad Online - 3 Replies I have got many Int And Str Scrolls but for how much money can i sell them?
met/db scroll hax?? 08/28/2007 - Conquer Online 2 - 2 Replies kk im thinking this might work......if u make the server think u were packing dbs but ur packing mets and it gives u a db scroll, would anyone have a clue on how to do that?!