[Guide] Create custom item to teleport you (get it as starter) by cyberghoser1

03/18/2010 03:01 cyberghoser1#1
Hello again, since my internet went down past hour i took the time to make something nice for all of you pserver owners, you may use it or not, its just for educational purpose.

We will learn how to create a custom Teleporter Item that will be on every starter's inventory, my example use few locations but you can improve it and add more using Funhacker's NPC Teleport maker.

Let's go

Part I: Teleporter NPC Tool

open up the [Only registered and activated users can see links. Click Here To Register...]

Make a Teleporter like this(you can add locations etc.)
Note: As you can see in the below picture, I already changed NPC ID afterwards to 135157, normally it is 10000001 to achieve the cq_action output so understand that normally you set it to 10000001

[Only registered and activated users can see links. Click Here To Register...]

now paste the result in your database:

Code:
delete from cq_action where id >= 10000001 and id <= 10000014;
delete from cq_task where id >= 10000001 and id <= 10000014;

Insert into cq_action values 
(10000001,10000002,0,101,0,'Hello~I~am~your~custom~Teleporter~Item,~keep~me~on~your~bag~so~i~can~let~you~go~anywhere~for~free!'),
(10000002,10000005,0,102,0,'Cronus 10000003'),
(10000003,10000004,0,1003,0,'1000 163 400'),
(10000004,0,0,126,0,'Welcome~to~Cronus!'),
(10000005,10000008,0,102,0,'ElvenCity 10000006'),
(10000006,10000007,0,1003,0,'2000 172 252'),
(10000007,0,0,126,0,'Welcome~to~ElvenCity!'),
(10000008,10000011,0,102,0,'Market 10000009'),
(10000009,10000010,0,1003,0,'1000 298 453'),
(10000010,0,0,126,0,'Welcome~to~Market!'),
(10000011,10000012,0,102,0,'No~thanks 0'),
(10000012,10000013,0,104,0,'0 0 100000010'),
(10000013,0,0,120,0,'');
Insert into cq_task values
(10000003,10000003,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(10000006,10000006,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(10000009,10000009,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(10000001,10000001,0,'','',0,0,999,-100000,100000,999,0,0,-1,0);
Now we need to create a itemtype for it, so here is the db side:

paste this in cq_itemtype
Code:
[COLOR="Blue"]135157[/COLOR]	CustomTele	0	0	0	0	0	0	0	0	17	0	0	[COLOR="Red"]10000001[/COLOR]	0	0	0	0	0	0	0	1	1	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0
Item ID
cq_action ID


Now we are gonna put this item on the starter's user inventory, very simple here search on your cq_action for this(it may vary but you get the point, thanks to Knight^Hawk):

Code:
8101022	8101025	8101024	503	[COLOR="Red"]724007[/COLOR]
8101024	8101025	0	501	[COLOR="Red"]724007[/COLOR]	
8101030	8101040	8101039	503	[COLOR="Red"]724007[/COLOR]
8101031	8101085	8101032	1080	3006	isexit
8101032	8101033	8101033	1080	3007	new
8101033	8102550	8102550	1080	3008	new
8101035	8101037	8101036	503	[COLOR="Red"]724007[/COLOR]	
8101036	8101037	0	501	[COLOR="Red"]724007[/COLOR]
The item in red is queen`s Letter, we don't need it so we gonna replace it with our custom teleporter item which id is 135157 remember to be sure that id is not used on your database and client.

Part II: Client Edits.

Now we need to create the item and add it to itemtype.dat
Go get [Only registered and activated users can see links. Click Here To Register...] by Funhacker

open your itemtype.dat file and add the item:
[Only registered and activated users can see links. Click Here To Register...]

Now we need to add a nice pic for our item in our inventory, i use that one:

add this to ItemMinIcon.ANI
Code:
[Item135157]
FrameAmount=10
Frame0=data/ItemMinIcon/810011/1.dds
Frame1=data/ItemMinIcon/810011/2.dds
Frame2=data/ItemMinIcon/810011/3.dds
Frame3=data/ItemMinIcon/810011/4.dds
Frame4=data/ItemMinIcon/810011/5.dds
Frame5=data/ItemMinIcon/810011/6.dds
Frame6=data/ItemMinIcon/810011/7.dds
Frame7=data/ItemMinIcon/810011/8.dds
Frame8=data/ItemMinIcon/810011/9.dds
Frame9=data/ItemMinIcon/810011/10.dds
add this to MapItemIcon.ANI
Code:
[135157]
FrameAmount=1
Frame0=data/ItemMinIcon/810011/1.dds
Create a new user, login and voila! :

[Only registered and activated users can see links. Click Here To Register...]
03/18/2010 03:08 matrix89#2
Nice work!!:D
03/18/2010 11:50 ProSkyZ#3
Instead of adding all this to make an item you can replace the whole action line that gives you the queen letter with the type and action of the new npc you made so when you create the new character and NPC talks auto when you start :p

But Thanks a lot Cyber
03/18/2010 12:34 .Ash#4
Lol i got a NPC Bin.. Wouldn't hurt to try it i guess.
03/18/2010 15:49 SoulNecturn#5
ok will say it here ... welcome back cyberghoser1 ..

I see few guides you started as an entry ;) Good job... well I have my own ways but for sure helpful for many - which will save many questions repeating so often here ;)

regards
03/18/2010 18:54 Danzalio#6
Nice release! Thanks
03/18/2010 19:57 cyberghoser1#7
Quote:
Originally Posted by ProSkyZ View Post
Instead of adding all this to make an item you can replace the whole action line that gives you the queen letter with the type and action of the new npc you made so when you create the new character and NPC talks auto when you start :p

But Thanks a lot Cyber
Be my guest and share it, i would love to improve any method in here, thanks for the comment my friend :)

Quote:
Originally Posted by Soulerman View Post
ok will say it here ... welcome back cyberghoser1 ..

I see few guides you started as an entry ;) Good job... well I have my own ways but for sure helpful for many - which will save many questions repeating so often here ;)

regards
Thanks soulerman, of course there are many ways doing things, easier, harder, i try my best :p
05/13/2010 21:25 CyberServer#8
nice shot fot cyberghoser and soulermen both of you are the best besides funhacker too and some more hopefully all the old developer of server will come again here and share alot of idea
06/24/2010 20:01 WickedSweet#9
ok so i did everything i get it on my toons names right codes seem right
but when i click to use it. it puts it on like its a pieace of armor any1 tell me were i went wrong?

Quote:
delete from cq_action where id >= 135157 and id <= 135206;
delete from cq_task where id >= 135157 and id <= 135206;

Insert into cq_action values
(135157,135158,0,101,0,'Welcom~to~iEnvision~Gaming ~I~will~be~your~friend~through~out~the~adventures~ i~can~teleport~any~were~you~would~like~:)'),


(135158,135161,0,102,0,'Cronus 135159'),
(135159,135160,0,1003,0,'1000 273 422'),
(135160,0,0,126,0,'Welcome~to~Cronus!'),
(135161,135164,0,102,0,'ElvenCity 135162'),
(135162,135163,0,1003,0,'2000 172 252'),
(135163,0,0,126,0,'Welcome~to~ElvenCity!'),
(135164,135167,0,102,0,'Market 135165'),
(135165,135166,0,1003,0,'1000 298 453'),
(135166,0,0,126,0,'Welcome~to~Market!'),
(135167,135170,0,102,0,'Gobi 135168'),
(135168,135169,0,1003,0,'3000 193 335'),
(135169,0,0,126,0,'Welcome~to~Gobi!'),
(135170,135173,0,102,0,'DarkMarsh 135171'),
(135171,135172,0,1003,0,'7000 446 522'),
(135172,0,0,126,0,'Welcome~to~DarkMarsh!'),
(135173,135176,0,102,0,'IcyLand 135174'),
(135174,135175,0,1003,0,'4000 355 324'),
(135175,0,0,126,0,'Welcome~to~IcyLand!'),
(135176,135179,0,102,0,'Island 135177'),
(135177,135178,0,1003,0,'5000 905 1011'),
(135178,0,0,126,0,'Welcome~to~Island!'),
(135179,135182,0,102,0,'IceMaze 135180'),
(135180,135181,0,1003,0,'5400 39 333'),
(135181,0,0,126,0,'Welcome~to~IceMaze!'),
(135182,135185,0,102,0,'Composing~Map 135183'),
(135183,135184,0,1003,0,'8721 94 189'),
(135184,0,0,126,0,'Welcome~to~Composing~Map!'),
(135185,135188,0,102,0,'Conquer~Scenic~Map 135186'),
(135186,135187,0,1003,0,'8980 295 263'),
(135187,0,0,126,0,'Welcome~to~Conquer~Scenic~Map!' ),
(135188,135191,0,102,0,'Space~Station1 135189'),
(135189,135190,0,1003,0,'5339 66 49'),
(135190,0,0,126,0,'Welcome~to~Space~Station1!'),
(135191,135194,0,102,0,'Scorpion~Room1 135192'),
(135192,135193,0,1003,0,'8709 70 70'),
(135193,0,0,126,0,'Welcome~to~Scorpion~Room1!'),
(135194,135197,0,102,0,'PitsofHell 135195'),
(135195,135196,0,1003,0,'1990 91 190'),
(135196,0,0,126,0,'Welcome~to~PitsofHell!'),
(135197,135200,0,102,0,'Space~Station2 135198'),
(135198,135199,0,1003,0,'5339 66 49'),
(135199,0,0,126,0,'Welcome~to~Space~Station2!'),
(135200,135203,0,102,0,'Scorpion~Room2 135201'),
(135201,135202,0,1003,0,'8709 70 70'),
(135202,0,0,126,0,'Welcome~to~Scorpion~Room2!'),
(135203,135204,0,102,0,'Exit 0'),
(135204,135205,0,104,0,'0 0 135157'),
(135205,0,0,120,0,'');


Insert into cq_task values
(135159,135159,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135162,135162,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135165,135165,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135168,135168,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135171,135171,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135174,135174,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135177,135177,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135180,135180,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135183,135183,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135186,135186,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135189,135189,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135192,135192,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135195,135195,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135198,135198,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135201,135201,0,'','',0,0,999,-100000,100000,999,0,0,-1,0),
(135157,135157,0,'','',0,0,999,-100000,100000,999,0,0,-1,0);
theres the code i created for it but dunno were i went wrong any help?
12/06/2010 00:59 hellra#10
hey when i do this it and when i click it it dont come up with the teleports it either comes up with saying what updates there is in my server or dont say nothing at all ???
12/06/2010 02:18 .Ash#11
Quote:
Originally Posted by hellra View Post
hey when i do this it and when i click it it dont come up with the teleports it either comes up with saying what updates there is in my server or dont say nothing at all ???
What database are you using?
01/25/2011 21:16 catface2345#12
cq task woulnt show up lol, when i do make NPC