Jump to content

vampir

Legendary Member
  • Posts

    1,899
  • Joined

  • Last visited

  • Days Won

    14
  • Feedback

    0%

Everything posted by vampir

  1. Those packets dont exist in interlude client
  2. Acis have hardcoded regex ^[A-Za-z0-9]{3,16}$ StringUtil#isValidPlayerName
  3. No, lameguard doesnt protect you from your own MySQL connections.
  4. Are you using compiled pack or you have the source code?
  5. Updated with annoying issue of last letter to be dropped into next line: If you have problem with last letter or 2 last letters of text to be dropped into next line like this: cellpadding being > 0 is the problem. Set it to 0, for example: <table cellpadding=0>
  6. The easiest way to accomplish this, is to modify source code of the server. Go to CharacterCreate and check if chosen class is ertheia, then reply with some error code(you might modify message of the error in systemmsg.dat).
  7. You need to handle bar expansion in ShortcutWnd in Interface.u
  8. First picture is looking better imo, just saying :)
  9. Actually, I check UWindow and this seems to be there. UWindowButton class: if(Text != "") { C.DrawColor=TextColor; ClipText(C, TextX, TextY, Text, True); C.SetDrawColor(255,255,255); } I am not sure if this works for HTML buttons or XDAT buttons. Maybe for both. I am unable to compile UWindow.u to check it though :/ This would be fun solution.
  10. This color is not even in interface files, seems to be in nwindow.dll I also thought of making the image on the server(putting the font on the image and sending it as a crest) but Mouse Over version would be black. I know that you could make this kind of thing with Interface.u changes: 1. You need to put few textures(like 10, which will be maximum amount of those buttons) and same amount of TextBoxes in Interface.xdat file 2. In Interface.u NpcChatWnd needs to search for specific texts at the end of message(like <fancyButton value="Blabla"/> bypass="something") 3. Each text must be replaced with nothing(so it will not be shown as html), Texture made in Interface.xdat must be shown(.ShowWindow()), TextBox must the shown, TextBox text must be replaced with value. 4. Other Textures and TextBoxes must be set as invisible 5. Location of Textures must be set just after HtmlText, location of text should have fixed location(like Texture.getX() + 20) 6. Texture should react for mouseOver and mouseDown event of TextBox(so Hover and Mouse Down texture will be shown correctly) 7. Button click should run bypass This solution has the limitation: If text is long and scroll bar shows, it might show button below whole frame. Maybe this can be fixed though. Most likely AutoTools guy could make this for you, it is like 2 hours of work.
  11. For sure you cannot change font of button name via html. If you make simple text over texture, Hover and Mouse Down version will not work. Try to put \" inside of value, you could also trick it by writing ' twice: ''
  12. No, those names are not in dat files. You might just replace current macro icons in utx file, if you are ok with their amount.
  13. utx or interface.u(hard to edit)
  14. You dont need to mess with database directly. Check CharacterCreate class, look for "Tutorial" key word. It would be the best to make config with quest names(like Tutorial) and in CharacterCreate to make for(String questName : Config.CHARACTER_CREATE_QUESTS) startQuest(questName); and startQuest should make same thing as code which starts tutorial quest.
  15. Do you mean to give specified quests when character is being created?
  16. I am willing to pay for teaching me how to make this work on smartguard protected server.
  17. In xml parser you should create object that will be then put in list(in holder class). So then you have got a holder containing all possible maps. If you want to choose map for the event: EventMap map = Rnd.get(HolderName.getInstance().getAllMaps()); or EventMap map = HolderName.getInstance().getRandomMap(); You might not have Rnd.get in your pack. it returns any object in range of the collection. Throws exception in case it is empty. It doesnt return null.
  18. In that case you should make an exception: if(list.contains(x)) throw new MyException(x.toString()); else list.add(x); The thing is, using list in your case would force more object oriented programming.
  19. I mean HashMap, FastMap. Make lists or Sets :) Same for StatsSet. Make normal class.
  20. Maybe just give a break with maps for some time :)
  21. public class EventMap { private final int id; private final String name; private List<TeamDetails> teams; public static class TeamDetails { private final EventTeam team; private final Location[] locations; private final int color } } EventMap map = Rnd.get(eventStructure.getMaps());
  22. Ah, so you are talking about List<Integer>. I am talking about class X{ int y;} Btw, why didnt you add Trove but made IntIntHolder on your own?
  23. Do you mean that in 99% of cases Integer is made instead of int? In what cases actually?
  24. You mean to change the message to something different?
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock