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:
Now we need to create a itemtype for it, so here is the db side:
paste this in cq_itemtype
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):
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
add this to MapItemIcon.ANI
Create a new user, login and voila! :
[Only registered and activated users can see links. Click Here To Register...]
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);
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
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]
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
Code:
[135157] FrameAmount=1 Frame0=data/ItemMinIcon/810011/1.dds
[Only registered and activated users can see links. Click Here To Register...]