|
You last visited: Today at 09:38
Advertisement
New Scroll
Discussion on New Scroll within the CO2 Private Server forum part of the Conquer Online 2 category.
01/20/2010, 20:59
|
#1
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
New Scroll
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
|
#2
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
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
|
#3
|
elite*gold: 20
Join Date: Aug 2009
Posts: 1,344
Received Thanks: 651
|
Quote:
Originally Posted by pro4never
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
|
#4
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Quote:
Originally Posted by Zion~
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
|
#5
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
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.
|
|
|
01/21/2010, 00:18
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
!= 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
|
#7
|
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
|
Didnt see the != hahaha, thought it was ==  
**** me XD
|
|
|
Similar Threads
|
WTT 3X Scroll for Shuta( Come with ur Scroll)(Evengarda)
06/16/2010 - Archlord Trading - 1 Replies
İ want to change 4x Scroll for shuta ... u need to come with ur scroll
|
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?!
|
All times are GMT +1. The time now is 09:39.
|
|