Jump to content

GodLesZ

Members
  • Posts

    186
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by GodLesZ

  1. I didnt changed anything in Z3R0's modification and couldnt test it.. // [Z3R0] - Added Item Check and Equipment Malfunctions // Armor Check & Safeguard from Deletion, -1 From Refine Count (Retain All Cards) if (.@part <= 2 && .@part >= 5) { // Armor Body Parts (Non Weapons) if (getequiprefinerycnt(.@part) >= 7) { // Current Refine is 7 or Higher //FailedRefItem .@part; // Do Not know if there is an attribute function to get attribute // [GodLesZ] Its possible.. fetch inventorylist, iterate them, compare all attributes and on match, you may access // @inventorylist_attribute set .@card[0] = getequipcardid(.@part, 0); set .@card[1] = getequipcardid(.@part, 1); set .@card[2] = getequipcardid(.@part, 2); set .@card[3] = getequipcardid(.@part, 3); /// <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>} delitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part),0,getequipcardid(.@part, 0),getequipcardid(.@part, 1),getequipcardid(.@part, 2),getequipcardid(.@part, 3); getitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part) - 1,0,getequipcardid(.@part, 0),getequipcardid(.@part, 1),getequipcardid(.@part, 2),getequipcardid(.@part, 3); } } // Weapon Check & Safeguard from Deletion, -1 From Deletion, -1 From Refine Count (Retain All Cards) if (.@part <= 4 && .@part >= 3) { // Weapons (Right and Left Hand) if (getequiprefinerycnt(.@part) >= 8) { // Current Refine is 8 or Higher //FailedRefItem .@part; // Do Not know if there is an attribute function to get attribute set .@card[0] = getequipcardid(.@part, 0); set .@card[1] = getequipcardid(.@part, 1); set .@card[2] = getequipcardid(.@part, 2); set .@card[3] = getequipcardid(.@part, 3); delitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part),0,getequipcardid(.@part, 0),getequipcardid(.@part, 1),getequipcardid(.@part, 2),getequipcardid(.@part, 3); getitem2 getequipid(.@part),1,1,getequiprefinerycnt(.@part) - 1,0,getequipcardid(.@part, 0),getequipcardid(.@part, 1),getequipcardid(.@part, 2),getequipcardid(.@part, 3); } } €dit: Bad idea to delete refine -1
  2. I like KeyWorld's idea but yes, its bad if you need the event for script events. I've build a small modification which should it be. This enables you to hold the old monster & monster_boss definitions AND add an additional flag (1/0) to show this mob while using convex mirror. The syntax is <map name>",<x>,<y>,"<name to show>",<mob id>,<amount>,<boss monster/normal monster>,<delay1>,<delay2>{,"<event label>"}; The flag has to be 1 or 0. 1 means convex mirror will show it, 0 otherwise. Boss mobs will still be shown even without this flag. This should be optionaly. Unfortunately I'm @work & cant test it Sorry 4 what. force_convex_display.diff
  3. Thanks for pointing that out. I think my pseudocode should be correct now.
  4. Without the explanation of the variable names i dont think this helps alot xD I assume size is the head sprite size after apply the scale from the action, right? off may be the world offset used to draw the sprite on a specified position. body_off2 seems to hold either the offset from the body action or another world offset/position. Or maybe the extraX/extraY in the action file? off2 had to be advised. Just to test some generic algorithms (i hate pseudocode) .. // assume the image is draw from the top-left corner // -- Input -- // Contains the world position Vector2 worldPos; // Offset taken from the boady action file, most named as "extraX/extraY" Vector2 bodyExtraOffset; // Offset taken from the head action file Vector2 headOffset; // Offset taken from the head action file, most named as "extraX/extraY" Vector2 headExtraOffset; // Head image size, after apply mirror, rotation & scale modifer from action file Vector2 headImageSize; // --- Drawing --- // Calculate the final offset for drawing Vector2 finalHeadOffset = (worldPos + headOffset + bodyExtraOffset - headExtraOffset); // The offset in action files are relative to the image center, so normalize this to the top-left corner finalHeadOffset -= headImageSize * 0.5f; // Draw the image Draw(<headImage>, finalHeadOffset); Hope it helps ôo
  5. I don't want to be opinionated, but just for example, see this jQuery bug: jQuery bug ticket #4622. Self-closing tag's arent a problem directly, but after coming together with a bunch of DOM content, IE may fail sometimes. I know that from personal experience. Btw, sorry for the off topic. I just wanted to mention it again, since many web developers are traveling around here too. As for the codebox feature, good job
  6. As for the HTML5 definition, KeyWorld is right. For some weired reasons my source view showed just a <!DOCTYPE> which isent valid. As for the lamness of IE (my researches found only problems on IE <8, no other browser), Kenpachi points it out. <3
  7. My PHP sprite class draws them some sort of dynamic: While the parameter/arguments are something screwed up.. i never had time to clean this up, but her is a the whole drawing: Its working for me but i dont know if there are some better ways for calulcating the positions. It assums that the offsetX and offsetY in action files are based on the image's center. As GDI draws based on the top-left corner, i subtract the half of width and height to get the top-left corner. The extraX and extraY in the body action file is used to offset the head sprite. This was just a test because i never read something about these 2 coordinates and after frustrating about a dynamic way for drawing a full character sprite, i tried them and yay, it worked! Hope it helps, even if its rly unclean :S €dit: spoiled x.x
  8. You need to declare clif_sendfakenpc() in clif.h first. Just paste the line void clif_sendfakenpc(struct map_session_data *sd, int npcid); above of #endif /* _CLIF_H_ */ And clif_specialeffect_single() needs a pointer on the block_list struct, so the line should be clif_specialeffect_single(&fk->bl, script_getnum(st,2), sd->fd); As for the mouse coordinates, I remeber to got some combinations to work, using a dummy skill called via itemSkill() script function after item usage. This was a ground spell and triggerd clif_parse_UseSkillToPos(), which i hijacked to check for my dummy skill and triggered an NPC after this. My old Revision is lost, so i cant provide some examples, Sorry =/
  9. I know Just wanted to reaffirm the vulnerability ^^ I would be happy to hear some adminstrator opinions about using such an addon.
  10. AFAIK the client needs a target to display the effect. Therefore you need an npc or player. Dont know about mobs/units, never tried it. But you could just spawn an npc, hide them and display an effect with the hidden npc as the target. AFAIK this works for certain minigames. For the mouse coordinates, you could try to use the itemSkill() script command and hope to receive a clif_parse_UseSkillToPos() packet, containing the coordinates of the target. If so, you will be able to move the npc to this coordinates and display the effect on it. If I'm right, i tried to catch the mouse coordinates sometimes before and had some trouble in it, But i cant remind me.. so let me know if youre lucked
  11. I'm totaly agree to ragnazorg, we need some guidlines and rules for spam prevention. This is one of the reasons why I'm unactive on the old eAthena board.. the spam and inactive moderators was unacceptable. Glad to see you're able to paste a definition of spam. Just to show it ur self - a shortcut from your profil option "show content":
  12. Since the content-type says, this page is a HTML, not XHTML, page, this would lead IE <8 and many other old browser for misshandling the page. HTML dosnt support self-colsing tags, event HTML5 dosnt (HTML5 re-implements optionaly end-.tags like HTML 3.2..). So its nicly to see, agree, but not valid
  13. This implements that every user knows that and do that. 2 things which wont ever happen, unfortunately This is a moderator's job too, imo. And some small cronjob script could check every 24 hrs if a topic in some specified sections hasent any replies since >6 months => mark as solved. This would simplify the job of a support for searching any threads which needs his/her attention inseatd of searching all 51 pages for topics without a solving answer.
  14. [OT] Why doing its simple if you could write thound lines of code for printing hello world? Thats the way of a developer ;D @Topic: IMO its a good idea to store user scripts on eAthena site. This way a search extension could also search through this scripts and content management on the user site will be much better than yet. This way any contributor could manage his contributions on a single place instead of checking the downtimes of the free uploaders. But I'm with Protimus, such things are very dangerous and have to be checked 3 times more before releasing them.
  15. +1, I agree with every point, even if I'm against paid services. No developer or project team wants to refresh content on multiple sites. Its enough to take care of requests and answering questions on multiple websites.
  16. Confirmed, worked for me also in some private projects long time ago.It's a nice cross-browser solution for selecting the text in the node.
  17. I didn't want to say this logo is a good one for a project like this. Just that a new logo would fit perfectly in the new forum. I'm with you - as for some of my rpg game projects, i would love to have a logo like this (*note's the member as a nice gfx artist *) but not for a project like this.
  18. <p> I love you <3 I'm quite sure we both think for the same posts like this one, arent we? /@Topic: I vote for also for removing strictly posts as "could be closed" or "vote for close" and so on.. there should be a button "solved" for the topic starter and only after he pushing this button (or isnt active since w00tever) the topic should be closed. Edit: And i hate the editor.. everytime i use the quote, its screwed up using bbcode + html and killed my post..
  19. Nice, reminds me on final fantasy or some other rpg title screens. Unlike mentioned above I'm against the old logo. eAthena got a new forum, a new theme and needs a new, modern looking logo (IMO).
  20. Even if I'm not lemongrass, i will try to provide some feedback. (Anything tested without any cookie or cache storage) Wiki with default skin: >5s Wiki with "ipbwiki_skin_monobook": <=3s (fastest, all the time) Wiki with "ipbwiki_skin": 7s (slowest, all the time) €dit: My post editor didnt have any WYSIWYG features (isnt this a IPB standard? Allways using WBB, so sorry for this question) and the bbcode is screwed/mixed up by html code. This is enables cross-site scripting vulnerabilities :/ Anyways, good job! I like the idea of a new forum and hope to get a cleaner community.
×
×
  • Create New...