Jump to content

Rendril

Member
  • Content Count

    612
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Rendril

  1. Thanks for pointing out the change. When I tested it the function was case sensitive. Attritbutes are not required, I added the id only because the particular example I used needed a reference.
  2. [b]null[/b] mds_player_avatar(string $name, string $attributes); Will echo the player's avatar image if the name is valid, otherwise it will give a no avatar message. Player name is not case sensitive. The image is echoed directly by the function with only a null value returned. The function can be called a maximum of 5 times in the script. Attributes are not required, but if used will be given directly to the image in html. Example: HTML [code] <script type="text/javascript"> function toggle(){ var img = document.getElementById("avatar"); img.style.display = img.s
  3. date('z') returns the numeric day of the year (starting from 0) I don't know of a php function that can show a server's age, but you can calculate MD's year: date("Y")-2005;
  4. Awiiya and I discussed this, for those interested in the code here it is: [code] <script type="text/javascript"> window.onload = function(){ document.getElementById("loader").style.display="none"; document.getElementById("content").style.display="block"; } </script> <div id="loader" style="text-align:center"> Loading...<br /> <img src="http://en9.tribalwars.net/graphic/throbber.gif" /> </div> <div id="content" style="display:none"> Your content etc <iframe src="etc etc">Your browser does not suppor
  5. To clarify, do you mean a preloader as in it loads data beforehand or preloader as in it looks like it is doing something while the user waits for everything to load, or both?
  6. Srbija igra u mom gradu, stadijum je 4km od kuce =D

  7. I like the idea of chosing who to allow to edit your papers. As requesting of someone to edit them for you, here you give them explicit access, thereby preventing someone from editing/removing your papers without consent. Maybe they could get your papers listed in addition to theirs under the papers window, thus they get the same interface but it will show only for you and without abuse.
  8. I was able to save the images without any difficulty. I realise now why the image must get used quickly. Thinking about its use, I see that it will need to be written as an image before the new icon function call, so instead can we be able to send more parameters to the image? It would be very useful to have id and class. So a function call like this mds_creature_icon(id, image_attributes); For example:[code] mds_creature_icon(12345, "id='image1' class='icon'");[/code]
  9. Yes, in fact it has been the site of many chases during HC.
  10. The same applies to many of my scripts, and clickables like the book of ancients, oak stories, hanging of mur etc. Having the option of making a clickable permanent would defeat the purpose of the auto-hide, who can justify their script being permanant without it having to be judged by Mur? I would rather have it auto-hide if the script's last use was 14 days ago, which in effect means nobody accessed in that time, of course "last use" needs to be more than merely viewing the clickable. I think allowing a cron to be implemented for each script would cause too much of a load on the server a
  11. How is this different to a normal auction? Those that can put forward the most money will of course win in the auction. It is not a flaw of the auction that you cannot afford bidding. I think it is a great initiative and should be savoured. That which possibly makes it seem unfair is the high prices the opening bids started at, this was of course a strategic move to eliminate opposition early on, but I feel it was too early too quickly. The minimum starting bid is 1 silver, I would have liked to see it start from that. I know this was a trial run, but I feel 3 items is too little, and the
  12. Rather than returning the image path, it could return the unique hash for the image and the coder can append it to make an image path. I think this would make the function more versatile. Script execution time is limited to 5 seconds (and memory use is limited too), even a badly coded script will not be able to run indefinitely. Perhaps limit the number of creature icons a script can gather in one session, like with avatars. 20 should be sufficient (1kb ?), pagination can be used when the coder needs more. If the concern is the memory waste from a bad script, consider the additional load
  13. [b]null[/b] mds_creature_icon(int|string $id, string $attributes); Will echo an image icon of the creature matching the ID if it is valid otherwise it will give a missing creature message. The image is echoed directly by the function, there is only a null value returned. Since it is a direct echo rather than a string, your HTML code will need ot be wraped around it. The paramter sent is the creature ID, not the CTC. It can be found under the creature in the creature menu. Example: HTML[code] <form method="post" action=""> Enter CTC to see the creature's day of birth<br /
  14. [quote name='phantasm' date='05 January 2010 - 08:07 PM' timestamp='1262714844' post='51917'] the only song types you can put into a embed file are mp3 files only [/quote] It depends on the browser and plugin support. I think midi, wav and mp3 are the default supported are.
  15. You are trying to play a YouTube (flv file), this is why I asked what type of file it was. YouTube has a small protection on their .flv's, so you need to add some more parameters. Change the width and height if you want the player to visible. [code] <embed width="0" height="0" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/v/UH4HDn4v24I&amp;feature=player_embedded&amp;fs=1&amp;autoplay=1"></embed> [/code] On a side note, YouTube provides the code in the "Embed" box to the right of the video, I haven't tested it but
  16. Remember that the calendar shows a day at a time. I thnk it could have 3-5 events without looking cluttered. There would have to be 1500+ events just to get there.
  17. I woudl like to see MD-related dates in the calendar. Even if a land changes 10 kings in the next week, why not remmeber them? A simple noting of the event could be placed in the calendar, while full-length description would be located elsewhere, MD-archives, forum, clickables etc. Not every event needs to be noted, as Chewett said the problem lies in which events are to be selected. I think a public vote, or paying a wishpoint to add to the calendar would be suitable.
  18. What is the file type that you want to play? The below code should work for most, replace SONG_URL with your file's path, it should work in most browsers. [code]<embed src="SONG_URL.mp3" hidden="true" /> <noembed><bgsound src="SONG_URL.mp3" /></noembed>[/code]
  19. If the account was created long ago, it might have been deleted. Accounts inactive for more than 6 months were removed around last year July.
  20. It's inconsistent, but it should actually be ["tradevalue"], so ["tradev" . "alue"] ought to work. Age and tradevalue are the only fields that are of type float (numbers with decimals), since the age displays correctly, it is not a type conversion error. My guess is that the trade value for creatures traded prior to the trade value implementation, will be 0, perhaps until traded. Are you trying it with an old creature that was traded? If so, try it with a new creature that gets traded and see if the same thing happens.
  21. There is a lot of potential for abuse with this, I will not disclose it here lest it becomes widespread.
  22. There was an increase to the score required for stage 2 to start, the duration of the stage was increased as well (to 48 hours)
  23. It's due to the way the indexes are named. MD script turns all your text to lowercase, so when you have ["battlesWon"], the script reads ["battleswon"] (lower case) To solve this use any method of your choosing to uppercase the letter. You will find that indexes which didn't work were the ones with uppercase letters. The lowercasing is a hassle, but was added for security. It will possibly be remvoed in future. Edit: [quote name='Burns' date='01 January 2010 - 12:29 PM' timestamp='1262341765' post='51581'] okay, solved that so far... but tradevalue, even written as 'trade'.[b]strtolowe
  24. Mur was informed of this quite a while ago. It should only be a small check to add.
  25. I'm in favour of all over Cutler's suggestions. [quote name='cutler121'] 2) Keep track of quest progress by having MDscript send a PM when a quest leg is completed. [/quote] A mail() function would be great, perhaps limit it so that it can only mail the scripter, rather than giving the ability to mail anyone. [quote name='cutler121'] 3) Give and take items from within MDscript (mainly I am thinking about silver coins) to help implement a more robust MD economy. (But WP and other items would be nice as well) [/quote] I brought this up a while ago for both item and creature transfers
×
×
  • Create New...