Karack

Member
Hi,

What does these values in this script?

Look at the red bold text
[article]

public static readonly PMList Trammel =
new PMList(1012000, 1012012, Map.Trammel, new PMEntry[]
{
new PMEntry(new Point3D(4467, 1283, 5), 1012003), // Moonglow
new PMEntry(new Point3D(1336, 1997, 5), 1012004), // Britain
new PMEntry(new Point3D(1499, 3771, 5), 1012005), // Jhelom
new PMEntry(new Point3D(771, 752, 5), 1012006), // Yew
new PMEntry(new Point3D(2701, 692, 5), 1012007), // Minoc
[/article]

Is it to listing and what's the use for it?

Thx
 
There are some doc about cliloc? My modified Publicmoongate.cs works but i get trouble with the cliloc error on and gump is too small.
 
if you're using EC instead of the CC, then yes gumps are smaller in ec

clilocs arent hard to work with but i dont know of any docs explaining how to use them

best advice i can offer is to use them you need to use

AddHtmlLocalized(int x, int y, int width, int height, int number, bool background, bool scrollbar)

instead of

AddHtml(int x, int y, int width, int height, string text, bool background, bool scrollbar)

ususally anything with "localized" is going to use a cliloc instead of a string
 
if you're using EC instead of the CC, then yes gumps are smaller in ec

clilocs arent hard to work with but i dont know of any docs explaining how to use them

best advice i can offer is to use them you need to use

AddHtmlLocalized(int x, int y, int width, int height, int number, bool background, bool scrollbar)

instead of

AddHtml(int x, int y, int width, int height, string text, bool background, bool scrollbar)

ususally anything with "localized" is going to use a cliloc instead of a string

I solved the gump sized problem.

#1-The EC and CC you talk about are tools?

#2-My problem with destination name still on. I added manualy cliloc values and trying to reproduce the logic in the originale publicmoongate.cs file. I get the destination name (Cliloc error) and somes are surely already used cliloc values in other scripts because they named with strange names.
[doublepost=1504887185][/doublepost]Ok, i found anwser for my first point. EC and CC are not tools, it's acronyms for Enhanced client and classic client.

As i said in my presentation post, I have a big 0.000000 expérience. Exchanging with you help me to understand :)
 
There's a method to see the code line reference when i post?

public class PMList
{
public static readonly PMList Felucca =
new PMList(1012000, 1012024, Map.Felucca, new PMEntry[]
{
new PMEntry(new Point3D(4464,1166,0), 1012006), // Moonglow
new PMEntry(new Point3D(1430,1703,9), 1012007), // Britain
new PMEntry(new Point3D(1417,3821,0), 1012008), // Jhelom
new PMEntry(new Point3D(542,985,0), 1012009), // Yew
new PMEntry(new Point3D(2526,583,0), 1012010), // Minoc
new PMEntry(new Point3D(1823,2821,0), 1012012), // Trinsic
new PMEntry(new Point3D(598,2134,0), 1012013), // Skara Brae
new PMEntry(new Point3D(3728,2164,20), 1012014), // Magincia
new PMEntry(new Point3D(3626,2612,0), 1012015), // Haven
new PMEntry(new Point3D(2899,676,0), 1012016), // Vesper
new PMEntry(new Point3D(3770,1308,0), 1012017), // NuJhelom
new PMEntry(new Point3D(2237,1214,0), 1012018), // Cove
new PMEntry(new Point3D(2895,3479,15), 101219), // Serpents Hold
new PMEntry(new Point3D(2705,2162,0), 1012020), // Bucs Den
new PMEntry(new Point3D(5272,3995,37), 1012021), // Delucia
new PMEntry(new Point3D(5729,3209,-1), 1012022), // Papua
new PMEntry(new Point3D(1361,895,0), 1012023)// Wind
});
public static readonly PMList FeluccaDungeons =
new PMList(1012001, 1012013, Map.Felucca, new PMEntry[]
{
new PMEntry(new Point3D(1301,1080,0), 1012026), // Despise
new PMEntry(new Point3D(511,1565,0), 1012027), // Shame
new PMEntry(new Point3D(4111,434,5), 1012028), // Deceit
new PMEntry(new Point3D(2498,921,0), 1012029), // Covetous
new PMEntry(new Point3D(2043,238,10), 1012030), // Wrong
new PMEntry(new Point3D(1176,2637,0), 1012031), // Destard
new PMEntry(new Point3D(4721,3824,0), 1012032), // Hythloth
new PMEntry(new Point3D(4596,3630,30), 1012033), // Hythloth
new PMEntry(new Point3D(2923,3409,8), 1012034), // Fire
new PMEntry(new Point3D(1999,81,4), 1012035), // Ice
new PMEntry(new Point3D(5451,3143,-60), 1012036), // Terathan Keep
new PMEntry(new Point3D(4596,3630,30), 1012037), // Daemon Temple
new PMEntry(new Point3D(5766,2634,43), 1012038), // Ophidian Temple
new PMEntry(new Point3D(2607,763,0), 1012039)// Solen
});
public static readonly PMList Trammel =
new PMList(1012000, 1012012, Map.Trammel, new PMEntry[]
{
new PMEntry(new Point3D(4464,1166,0), 1012006), // Moonglow
new PMEntry(new Point3D(1430,1703,9), 1012007), // Britain
new PMEntry(new Point3D(1417,3821,0), 1012008), // Jhelom
new PMEntry(new Point3D(542,985,0), 1012009), // Yew
new PMEntry(new Point3D(2526,583,0), 1012010), // Minoc
new PMEntry(new Point3D(1823,2821,0), 1012012), // Trinsic
new PMEntry(new Point3D(598,2134,0), 1012013), // Skara Brae
new PMEntry(new Point3D(3728,2164,20), 1012014), // Magincia
new PMEntry(new Point3D(3626,2612,0), 1012015), // Haven
new PMEntry(new Point3D(2899,676,0), 1012016), // Vesper
new PMEntry(new Point3D(3770,1308,0), 1012017), // NuJhelom
new PMEntry(new Point3D(2237,1214,0), 1012018), // Cove
new PMEntry(new Point3D(2895,3479,15), 101219), // Serpents Hold
new PMEntry(new Point3D(2705,2162,0), 1012020), // Bucs Den
new PMEntry(new Point3D(5272,3995,37), 1012021), // Delucia
new PMEntry(new Point3D(5729,3209,-1), 1012022), // Papua
new PMEntry(new Point3D(1361,895,0), 1012023)// Wind
});
public static readonly PMList TrammelDungeons =
new PMList(1012025, 1012040, Map.Trammel, new PMEntry[]
{
new PMEntry(new Point3D(1301,1080,0), 1012026), // Despise
new PMEntry(new Point3D(511,1565,0), 1012027), // Shame
new PMEntry(new Point3D(4111,434,5), 1012028), // Deceit
new PMEntry(new Point3D(2498,921,0), 1012029), // Covetous
new PMEntry(new Point3D(2043,238,10), 1012030), // Wrong
new PMEntry(new Point3D(1176,2637,0), 1012031), // Destard
new PMEntry(new Point3D(4721,3824,0), 1012032), // Hythloth
new PMEntry(new Point3D(4596,3630,30), 1012033), // Hythloth
new PMEntry(new Point3D(2923,3409,8), 1012034), // Fire
new PMEntry(new Point3D(1999,81,4), 1012035), // Ice
new PMEntry(new Point3D(5451,3143,-60), 1012036), // Terathan Keep
new PMEntry(new Point3D(4596,3630,30), 1012037), // Daemon Temple
new PMEntry(new Point3D(5766,2634,43), 1012038), // Ophidian Temple
new PMEntry(new Point3D(2607,763,0), 1012039)// Solen
});
public static readonly PMList Ilshenar =
new PMList(1012002, 1012014, Map.Ilshenar, new PMEntry[]
{
new PMEntry(new Point3D(1215, 467, -13), 1012042), // Compassion
new PMEntry(new Point3D(722, 1366, -60), 1012043), // Honesty
new PMEntry(new Point3D(744, 724, -28), 1012044), // Honor
new PMEntry(new Point3D(281, 1016, 0), 1012045), // Humility
new PMEntry(new Point3D(987, 1011, -32), 1012046), // Justice
new PMEntry(new Point3D(1174, 1286, -30), 1012047), // Sacrifice
new PMEntry(new Point3D(1532, 1340, - 3), 1012048), // Spirituality
new PMEntry(new Point3D(528, 216, -45), 1012049), // Valor
new PMEntry(new Point3D(1721, 218, 96), 1012050)// Chaos
});

public static readonly PMList IlshenarDungeons =
new PMList(1012051, 1012062, Map.Ilshenar, new PMEntry[]
{
new PMEntry(new Point3D(852,602,-40), 1012052), // Gargoyle
new PMEntry(new Point3D(1151,659,-80 ), 1012053), // Savage
new PMEntry(new Point3D(576,1150,-100 ), 1012054), // Ankh
new PMEntry(new Point3D(1747,1171,-2 ), 1012055), // Blood
new PMEntry(new Point3D(548,462,-53 ), 1012056), // Sorceror's
new PMEntry(new Point3D(1362,1033,-8 ), 1012057), // Spectre
new PMEntry(new Point3D(651,1302,-58 ), 1012058), // Wisp
new PMEntry(new Point3D(1203,1124,-25 ), 1012059), // Lakeshire
new PMEntry(new Point3D(819,1130,-29 ), 1012060), // Mistas
new PMEntry(new Point3D(1706,205,104 ), 1012061)// Montor
});
public static readonly PMList Malas =
new PMList(1060643, 1062039, Map.Malas, new PMEntry[]
{
new PMEntry(new Point3D(990,520,-50 ), 1060644), // Luna
new PMEntry(new Point3D(2047,1353,-85 ), 1060645), // Umbra
new PMEntry(new Point3D(2368,1267,-85 ), 1060646), // Doom
new PMEntry(new Point3D(912, 215, -90 ), 1060647), // Orc fort1
new PMEntry(new Point3D(1678, 374, -50 ), 1060648), // Orc fort2
new PMEntry(new Point3D(1375, 621, -86 ), 1060649), // Orc fort3
new PMEntry(new Point3D(1184, 715, -89 ), 1060651), // Orc fort4
new PMEntry(new Point3D(1279, 1324, -90 ), 1060652), // Orc fort5
new PMEntry(new Point3D(1598, 1834, -107 ), 1060653), // Orc fort6
new PMEntry(new Point3D(1598, 1762, -110 ), 1060654)// Ruined Temple
});
public static readonly PMList Tokuno =
new PMList(1063258, 1063415, Map.Tokuno, new PMEntry[]
{
new PMEntry(new Point3D(322,430,32 ), 1063404), // Homare Bushido Dojo
new PMEntry(new Point3D(255,789,63 ), 1063405), // Homare Yomotsu Mine
new PMEntry(new Point3D(203,985,18 ), 1063406), // Homare Crane Marsh
new PMEntry(new Point3D(741,1261,30 ), 1063407), // Makoto Zento
new PMEntry(new Point3D(727,1048,33 ), 1063408), // Makoto Desert
new PMEntry(new Point3D(970,222,23 ), 1063409), // Isamu Fan Dancer's Dojo
new PMEntry(new Point3D(1234,772,3 ), 1063410), // Isamu Mt. Sho Castle
new PMEntry(new Point3D(1044,523,15 ), 1063411), // Isamu Valor Shrine
new PMEntry(new Point3D(1169, 998, 41), 1063412), // Isamu-Jima
new PMEntry(new Point3D(802, 1204, 25), 1063413), // Makoto-Jima
new PMEntry(new Point3D(270, 628, 15), 1063414)// Homare-Jima
});
public static readonly PMList TerMur =
new PMList(1113602, 1113602, Map.TerMur, new PMEntry[]
{
new PMEntry(new Point3D(852, 3526, -43), 1113603), // Royal City
Core.TOL ? new PMEntry(new Point3D(719, 1863, 40), 1156262) : new PMEntry(new Point3D(926, 3989, -36), 1112572), // Valley of Eodon
// Holy City
});

public static readonly PMList[] UORLists = new PMList[] { Trammel, Felucca, TrammelDungeons, FeluccaDungeons };
public static readonly PMList[] UORListsYoung = new PMList[] { Trammel, TrammelDungeons };
public static readonly PMList[] LBRLists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons };
public static readonly PMList[] LBRListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons };
public static readonly PMList[] AOSLists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons, Malas };
public static readonly PMList[] AOSListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas };
public static readonly PMList[] SELists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno };
public static readonly PMList[] SALists = new PMList[] { Trammel, TrammelDungeons, Felucca, Felucca, Ilshenar, IlshenarDungeons, Malas, Tokuno, TerMur };
public static readonly PMList[] SAListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno, TerMur };
public static readonly PMList[] RedLists = new PMList[] { Felucca, FeluccaDungeons };
public static readonly PMList[] SigilLists = new PMList[] { Felucca, FeluccaDungeons };
}


#1-The locations i added are in bold black

#2-I tried to add groups in the gump but that does not appear to work.

Look the That the result of the script hehe
publicmoongate gump.png
 
Last edited by a moderator:
to start with you're using #s that aren't clilocs and that's why you're getting Errors on the gump.

secondly, you're using completely random clilocs for the location names and that's why you're getting Bank Balance etc.

i'd suggest getting UOFiddler and using that to look through clilocs...among other things that will help you later on.

http://uofiddler.polserver.com/

new PMList(1012000, 1012024, Map.Felucca, new PMEntry[] // 1012000 = Trammel ;
new PMList(1012001, 1012013, Map.Felucca, new PMEntry[] // 1012001 = Fel ;
new PMList(1012000, 1012012, Map.Trammel, new PMEntry[] // 1012000 = Trammel ;
new PMList(1012025, 1012040, Map.Trammel, new PMEntry[] // 1012025 = not a cliloc ;
new PMList(1012002, 1012014, Map.Ilshenar, new PMEntry[]
new PMList(1012051, 1012062, Map.Ilshenar, new PMEntry[] // 1012051 not a cliloc;
new PMList(1060643, 1062039, Map.Malas, new PMEntry[]
new PMList(1063258, 1063415, Map.Tokuno, new PMEntry[]
new PMList(1113602, 1113602, Map.TerMur, new PMEntry[]
 
Great thx for the UOfiddler reference. I can see all cliloc values.

Why it have 8 cliloc values for Destard? There's a difference between, exemple, Destard felucca and Destard trammel for the cliloc?

And what do you think about this part of the script? It seem to do nothing, i tried to create name group in the left part of the gump (I added the bold text)

public static readonly PMList[] UORLists = new PMList[] { Trammel, Felucca, TrammelDungeons, FeluccaDungeons };
public static readonly PMList[] UORListsYoung = new PMList[] { Trammel, TrammelDungeons };
public static readonly PMList[] LBRLists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons };
public static readonly PMList[] LBRListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons };
public static readonly PMList[] AOSLists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons, Malas };
public static readonly PMList[] AOSListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas };
public static readonly PMList[] SELists = new PMList[] { Trammel, TrammelDungeons, Felucca, FeluccaDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno };
public static readonly PMList[] SEListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno };
public static readonly PMList[] SALists = new PMList[] { Trammel, TrammelDungeons, Felucca, Felucca, Ilshenar, IlshenarDungeons, Malas, Tokuno, TerMur };
public static readonly PMList[] SAListsYoung = new PMList[] { Trammel, TrammelDungeons, Ilshenar, IlshenarDungeons, Malas, Tokuno, TerMur };
public static readonly PMList[] RedLists = new PMList[] { Felucca, FeluccaDungeons };
public static readonly PMList[] SigilLists = new PMList[] { Felucca, FeluccaDungeons };
 
Many locations isnt in the cliloc, like Savage camp, orc fort, ruined temple, demon temple. Can i use as i wish all empty cliloc values?

All publicmoongate located near classic dungeons doesn't have coming back moongate
 
my moongate in new haven is a cliloc error still works, but i added a new new haven and gate is at another spot doesnt work so i deleted it, and the old on still works but is far from town. i would like to place one in town.
i did but i can only gate out and not back to it?
any ideas?
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back