[Questions] How to !

Go down

[Questions] How to !

Post by divinkiss on Sun May 08, 2011 7:08 pm

Hi !
I have downloaded the portal master and i want to know how to do some things:

- How can i put an additionnal custom teleport location to the top of the list, not the bottom

-How can i add a price for all the teleport location, not only the customs that i add myself (there is an option for th "Download teleport" but not for "The portal master")

Thank you !

divinkiss

Viestien lukumäärä : 3
Join date : 2011-05-08

Back to top Go down

Re: [Questions] How to !

Post by Rochet2 on Sun May 08, 2011 11:30 pm

The answer to your first question depends on your core.
If you have MaNGOS, you can just move all the other teleports with the same menu_id to have their ID +1 so you can add your own teleport at the top (1).

ID tells the position of the option ingame, but it might bugg a bit on mangos for some reason.

On Trinity it gets a bit more tricky as you also need to move the conditions in the condition table, but the idea is the same.



The price of the teleports is set in gossip_menu_option table in the box_money field.

The cost is set in copper so 10000 is 1 gold.

I think I moved all the level requirements of the teleports to the same column in Mangos version too, so if you know SQL, you can easily create an SQL statement that calcualtes the price of the teleports in couple milliseconds by the level of the region. (if you dont want to do it by hand)
avatar
Rochet2
Admin

Viestien lukumäärä : 196
Join date : 2010-02-04

http://emuproject.bbflash.net

Back to top Go down

Re: [Questions] How to !

Post by divinkiss on Mon May 09, 2011 4:24 am

I'm using Trinity and it's ok for the price of teleport, i can do it. But i still not understand how to put custom teleport at the top. Could you help me ? i want to add this four location:

At the first row for alliance
Name: ZONE ACHAT ALLIANCE
map=0
zone=1519
area=1519
x= -8768.611328
Y= 410.177582
Z=103.920998
O=2.252101

At the second row for Alliance
Name=ZONE DES METIERS
map=0
zone=1519
area=1519
x= -8838.542969
y= 637.603088
z= 94.898689
o= 6.068337

At the first row for the Horde:
Name=ZONE ACHAT HORDE
map=1
zone=1637
area=1637
X= 1637.960327
Y= -4208.756348
Z= 56.382286
O= 0.264646

At the second row for the Horde:
Name:ZONE DES METIERS
map=1
zone=1637
area=1637
x= 1544.560303
y= -4414.878906
z= 10.191648
o= 0.292143

Could you convert them to an SQL request, to place them at the right row? I know it's a personnal request, but it cant be by myself for trinity :'(

divinkiss

Viestien lukumäärä : 3
Join date : 2011-05-08

Back to top Go down

Re: [Questions] How to !

Post by Rochet2 on Mon May 09, 2011 6:44 am

Well .. I created the SQL once, but I noted amonth later that it was faulty as the condition table entries get mixed.

It would be best to make it by hand (a lot faster) directly to the database.

If you want, we can teamviewe. (PM me or contact by some more private way)

While writing this message I created a new code, check the creator now:
http://projectcode.zzl.org/Temp/?section=Download_Portal_Master_Option
avatar
Rochet2
Admin

Viestien lukumäärä : 196
Join date : 2010-02-04

http://emuproject.bbflash.net

Back to top Go down

Re: [Questions] How to !

Post by divinkiss on Mon May 09, 2011 9:42 am

It's so cool ! Perfect!
thanks !

divinkiss

Viestien lukumäärä : 3
Join date : 2011-05-08

Back to top Go down

Re: [Questions] How to !

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum