Jump to content

Recommended Posts

Posted

Hey, wassup maxcheaters!

 

Recently, I got a pm from a kid here (I won't give a name) who wanted to co-operate with me for a website. You know, there are some guys over right here, who are SELLING "webdesign services" for a really low cost. What the give? A nice "image" full o texts and nonsense which looks good in your browser and you think you made a nice DEAL, but it looks crappy either when you add content or ie. trying to add a button in your navigation. Let me make some things clear for you.

 

First off: Taking a look at the market

 

Well, in order to get started with Web Design you should first check out the market prices. Web Design is a whole industry and the prices out there have nothing to do, with SOME of the prices I've seen in some cases over here. The going rate for web design can vary greatly. It is entirely possible to find someone that will build you a website for $100. It is also possible to find someone that would charge you $10,000 to build that same site. Why is that? Why would the range of costs vary so much? Well, those rock bottom prices are typically from "designers" who:

  • are in high school, living in their parent's basement
  • have very little experience and even less expertise
  • create inferior products (and don't even know it!)
  • work in India, in a web design sweat shop

To be honest with you, here in Greece the prices are a BIT nicer, comparing to the outer world, and that's because some offices here don't even care about the latest and greatest technologies out there. They code in an old knowledge base that may still work but still, it's not the same nice nowadays technology. So the price for a SIMPLE STATIC (we'll get to that) website starts around 360€ (including one sub page).

 

So, prices differ from case to case, but you want to know the criteria before buying a website, don't you?

 

Criteria for a proper website

 

So, reaching this point you might wonder? Then why guy 'X' asks for like 50€ for a website? You guessed it right! He's not making something exceptional. He's just doing the stuff some guy taught him from youtube and it's all wrong. The result might look fantastic in your eyes but that's why you should know the following. There are many, many factors that contribute to a successful website, in the least it should:

  • be built according to web standards
  • work in all browsers (not everyone browses the web the same way)
  • be optimized for search engines; that is, your site actually appears in search results
  • be appealing to your target audience
  • utilize metrics to help you measure performance
  • accommodate new technologies

Can your low-end designer give you that? No, and they don't even know it.  But does that necessarily mean you have to spend a fortune on your website? Probably not, unless you are a corporation or enterprise level entity seeking to develop a large-scale, complex business platform. What would I do in your situation if I needed a website? I would shop around. Ask questions. If a designer won't answer questions, then move on...they either don't know the answer or don't think your questions are important. Gather information so you can make an informed decision...

 

What's about PSD's and RIP's?

 

Photoshop is a great tool. I'll call it ultimate tool for webdesigning and graphic design. The problem is, that Photoshop ISN'T a tool that can help in web DEVELOPMENT. Yeah, you heard it right. Photoshop is a tool for DESIGNING pages, not to code them.

 

You might have heard of the famous feature (most of the wannabe web-designers know it here) which is called "Save for Web & Devices". Actually this is a very neat feature of Photoshop. It's MEANT to be used in order to OPTIMIZE some images for the web. The whole "Slicing images" technique has nothing to do with exporting a generated HTML file from Photoshop. See, the slice refers to the procedure, where you go and take a piece of your website (like a background little piece or a button, or a photo) and you save it as a SEPARATE image to be used IN your CODING.

 

Yeah, I'm shouting with the caps, cause some guys are totally confused to that term. They use the slice tool, and then "Save for web & devices" and they have an html file with some image folder. Let me make it clear:

 

THIS, IS NOT WEB DESIGNING! Actually it is. DESIGN. It has nothing to do with coding. Photoshop, in short words, is generating a piece of HTML file using TABLES and for many many reasons (read 'em here), you don't want your site to be like that. If a designer claims to say he code it himself you can always look at the source code of the html file he gave to you.

 

ijhFzX6wJM1VZ.png

 

You see this "ImageReady Slices (l2mafia.psd)" green thingie there? That's a generated html comment that Photoshop puts (CS2, if I'm not wrong) and the so called "web designer" didn't even care to remove it. So, if someone is smart enough he might remove it, but again those nonsense 'images/spacer.gif' photoshop puts in the html code can easily be detected.

 

So, to conclude: THIS IS NOT HOW A PROPERLY DEVELOPED WEBSITE'S SOURCE SHOULD LOOK.

 

Now, riping is a term that is known here in maxcheaters. Unfortunately there are programs out there like HTTP Track Pro Ultimate Ever DOomedwh8(E@*)*@E crap that SHOULD be used to have some website back'ed up for offline reading, but at the end it's used in order to RIP someone's work. HTML files and CSS can always be ripped and there're no ways you can defend it. A thing that CAN'T be ripped is php and serverside code which is not the case for that topic.

 

So when buying a template, be sure to give it a proper copyright. Ambitious wannabe webdesigner DO put their name under a template and claim they "developed" it (right hahah), so don't get anxious about your existing website.

 

Static or Dynamic? (o.O)

 

HTML&CSS is a skill that every single web designer should have. Nowadays, when you ask for a template, you get the properly developed (remember? :P) html file with one or two css files, plus some image directory and javascript directory. That's it. That's a usual template directory structure. But what you can do with it?

 

Well, one way is to copy and paste a couple of times the index.html file, rename it and then populate each file with a different content. Yeah, that's a way, I agree, but this is the STATIC way of doing things. I mean, in case you don't know how to edit the HTML code, then you might ask it from your web designer and he might asks for more money. Designing a nicely crafted paragraph with an image (in case of a "news" page) is not that easy work to do, when don't know shit about HTML. That's why there's an other category of websites. The DYNAMICALLY populated websites.

 

Dynamic websites, usually come with an admin panel, which is a GUI in your browser, telling you what to edit and usually they have a preview button to see your result. They way they work? When you login to your admin panel (passwords and stuff should be given to you from the webdeveloper) you should see some buttons. Play with them, explore your panel (you may have been given some instructions, read 'em) and when you come up with a form like a textarea then the rest should be easy for you. You can easily add content to your website pretty much the way you would write in a word processor (like Word, Excel etc..).

 

As you probably have guessed, dynamic websites do COST more than static websites. It's clearly your decision and there's nothing better or worse. You should really care for dynamic website, when your content is refreshing or expanding rapidly...

 

Conclusion. Having questions?

 

You might be confused with all these. What I wanted to say is the following statement:

 

"You always get, what you pay for. It's your choice if you go for a cheap webdesign or a high-budget one. You should be sure, that if you pay more than regular, you'll get eventually something nicer than the others."

 

After all these kind of information, if you still have questions about webdesign & development, please consider posting a reply here. I won't reply to spam/trolling. Be nice and gentle if you need an answer, as I was. Thanks :)

 

Who is 'Blane' eventually?

 

Well, many of you (oldschool members) might know me. I was in the staff before a long time and now I'm just hanging over somewhere between off-topics and spam-topics. When I was asked for the co-operation I told in the first paragraph I was shocked of how young kids are unaware of the whole business industry of webdesign.

 

Besides that, I'm a webdesigner myself and I have been designing websites for almost 5 years now. I'm not that experienced, but I'm trying to be more "in-to" the things as the time goes by. I you're unhappy with my work, then please, don't judge the prices I ask. Almost every website you've seen from me here, is a REALLY low-budget website (~80-100€) and that's because none of you every tried to buy something better. I hope this topic enlightens you for your future websites (though I'm not forcing anyone to buy from me).

 

I just wanted to make things clearer. Now, you 'wannabe webdesingers', I have nothing against you. You should really follow this career because it's magical, adventurous and of course FUN. You just have to follow the new trends, trying to learn some coding (HTML&CSS) and try to craft a website from completely zero. My step-by-step tutorial might be handy for you, you can check it here.

 

Excuse me for any typos. Everything here is hand-written and it's copyrighted by myself. Hope you enjoyed! Best wishes,

Blane

  • Upvote 1
Posted

Hey, wassup maxcheaters!

 

Recently, I got a pm from a kid here (I won't give a name) who wanted to co-operate with me for a website. You know, there are some guys over right here, who are SELLING "webdesign services" for a really low cost. What the give? A nice "image" full o texts and nonsense which looks good in your browser and you think you made a nice DEAL, but it looks crappy either when you add content or ie. trying to add a button in your navigation. Let me make some things clear for you.

 

First off: Taking a look at the market

 

Well, in order to get started with Web Design you should first check out the market prices. Web Design is a whole industry and the prices out there have nothing to do, with SOME of the prices I've seen in some cases over here. The going rate for web design can vary greatly. It is entirely possible to find someone that will build you a website for $100. It is also possible to find someone that would charge you $10,000 to build that same site. Why is that? Why would the range of costs vary so much? Well, those rock bottom prices are typically from "designers" who:

  • are in high school, living in their parent's basement
  • have very little experience and even less expertise
  • create inferior products (and don't even know it!)
  • work in India, in a web design sweat shop

To be honest with you, here in Greece the prices are a BIT nicer, comparing to the outer world, and that's because some offices here don't even care about the latest and greatest technologies out there. They code in an old knowledge base that may still work but still, it's not the same nice nowadays technology. So the price for a SIMPLE STATIC (we'll get to that) website starts around 360€ (including one sub page).

 

So, prices differ from case to case, but you want to know the criteria before buying a website, don't you?

 

Criteria for a proper website

 

So, reaching this point you might wonder? Then why guy 'X' asks for like 50€ for a website? You guessed it right! He's not making something exceptional. He's just doing the stuff some guy taught him from youtube and it's all wrong. The result might look fantastic in your eyes but that's why you should know the following. There are many, many factors that contribute to a successful website, in the least it should:

  • be built according to web standards
  • work in all browsers (not everyone browses the web the same way)
  • be optimized for search engines; that is, your site actually appears in search results
  • be appealing to your target audience
  • utilize metrics to help you measure performance
  • accommodate new technologies

Can your low-end designer give you that? No, and they don't even know it.  But does that necessarily mean you have to spend a fortune on your website? Probably not, unless you are a corporation or enterprise level entity seeking to develop a large-scale, complex business platform. What would I do in your situation if I needed a website? I would shop around. Ask questions. If a designer won't answer questions, then move on...they either don't know the answer or don't think your questions are important. Gather information so you can make an informed decision...

 

What's about PSD's and RIP's?

 

Photoshop is a great tool. I'll call it ultimate tool for webdesigning and graphic design. The problem is, that Photoshop ISN'T a tool that can help in web DEVELOPMENT. Yeah, you heard it right. Photoshop is a tool for DESIGNING pages, not to code them.

 

You might have heard of the famous feature (most of the wannabe web-designers know it here) which is called "Save for Web & Devices". Actually this is a very neat feature of Photoshop. It's MEANT to be used in order to OPTIMIZE some images for the web. The whole "Slicing images" technique has nothing to do with exporting a generated HTML file from Photoshop. See, the slice refers to the procedure, where you go and take a piece of your website (like a background little piece or a button, or a photo) and you save it as a SEPARATE image to be used IN your CODING.

 

Yeah, I'm shouting with the caps, cause some guys are totally confused to that term. They use the slice tool, and then "Save for web & devices" and they have an html file with some image folder. Let me make it clear:

 

THIS, IS NOT WEB DESIGNING! Actually it is. DESIGN. It has nothing to do with coding. Photoshop, in short words, is generating a piece of HTML file using TABLES and for many many reasons (read 'em here), you don't want your site to be like that. If a designer claims to say he code it himself you can always look at the source code of the html file he gave to you.

 

ijhFzX6wJM1VZ.png

 

You see this "ImageReady Slices (l2mafia.psd)" green thingie there? That's a generated html comment that Photoshop puts (CS2, if I'm not wrong) and the so called "web designer" didn't even care to remove it. So, if someone is smart enough he might remove it, but again those nonsense 'images/spacer.gif' photoshop puts in the html code can easily be detected.

 

So, to conclude: THIS IS NOT HOW A PROPERLY DEVELOPED WEBSITE'S SOURCE SHOULD LOOK.

 

Now, riping is a term that is known here in maxcheaters. Unfortunately there are programs out there like HTTP Track Pro Ultimate Ever DOomedwh8(E@*)*@E crap that SHOULD be used to have some website back'ed up for offline reading, but at the end it's used in order to RIP someone's work. HTML files and CSS can always be ripped and there're no ways you can defend it. A thing that CAN'T be ripped is php and serverside code which is not the case for that topic.

 

So when buying a template, be sure to give it a proper copyright. Ambitious wannabe webdesigner DO put their name under a template and claim they "developed" it (right hahah), so don't get anxious about your existing website.

 

Static or Dynamic? (o.O)

 

HTML&CSS is a skill that every single web designer should have. Nowadays, when you ask for a template, you get the properly developed (remember? :P) html file with one or two css files, plus some image directory and javascript directory. That's it. That's a usual template directory structure. But what you can do with it?

 

Well, one way is to copy and paste a couple of times the index.html file, rename it and then populate each file with a different content. Yeah, that's a way, I agree, but this is the STATIC way of doing things. I mean, in case you don't know how to edit the HTML code, then you might ask it from your web designer and he might asks for more money. Designing a nicely crafted paragraph with an image (in case of a "news" page) is not that easy work to do, when don't know shit about HTML. That's why there's an other category of websites. The DYNAMICALLY populated websites.

 

Dynamic websites, usually come with an admin panel, which is a GUI in your browser, telling you what to edit and usually they have a preview button to see your result. They way they work? When you login to your admin panel (passwords and stuff should be given to you from the webdeveloper) you should see some buttons. Play with them, explore your panel (you may have been given some instructions, read 'em) and when you come up with a form like a textarea then the rest should be easy for you. You can easily add content to your website pretty much the way you would write in a word processor (like Word, Excel etc..).

 

As you probably have guessed, dynamic websites do COST more than static websites. It's clearly your decision and there's nothing better or worse. You should really care for dynamic website, when your content is refreshing or expanding rapidly...

 

Conclusion. Having questions?

 

You might be confused with all these. What I wanted to say is the following statement:

 

"You always get, what you pay for. It's your choice if you go for a cheap webdesign or a high-budget one. You should be sure, that if you pay more than regular, you'll get eventually something nicer than the others."

 

After all these kind of information, if you still have questions about webdesign & development, please consider posting a reply here. I won't reply to spam/trolling. Be nice and gentle if you need an answer, as I was. Thanks :)

 

Who is 'Blane' eventually?

 

Well, many of you (oldschool members) might know me. I was in the staff before a long time and now I'm just hanging over somewhere between off-topics and spam-topics. When I was asked for the co-operation I told in the first paragraph I was shocked of how young kids are unaware of the whole business industry of webdesign.

 

Besides that, I'm a webdesigner myself and I have been designing websites for almost 5 years now. I'm not that experienced, but I'm trying to be more "in-to" the things as the time goes by. I you're unhappy with my work, then please, don't judge the prices I ask. Almost every website you've seen from me here, is a REALLY low-budget website (~80-100€) and that's because none of you every tried to buy something better. I hope this topic enlightens you for your future websites (though I'm not forcing anyone to buy from me).

 

I just wanted to make things clearer. Now, you 'wannabe webdesingers', I have nothing against you. You should really follow this career because it's magical, adventurous and of course FUN. You just have to follow the new trends, trying to learn some coding (HTML&CSS) and try to craft a website from completely zero. My step-by-step tutorial might be handy for you, you can check it here.

 

Excuse me for any typos. Everything here is hand-written and it's copyrighted by myself. Hope you enjoyed! Best wishes,

Blane

Posted

Hey, wassup maxcheaters!

 

Recently, I got a pm from a kid here (I won't give a name) who wanted to co-operate with me for a website. You know, there are some guys over right here, who are SELLING "webdesign services" for a really low cost. What the give? A nice "image" full o texts and nonsense which looks good in your browser and you think you made a nice DEAL, but it looks crappy either when you add content or ie. trying to add a button in your navigation. Let me make some things clear for you.

 

First off: Taking a look at the market

 

Well, in order to get started with Web Design you should first check out the market prices. Web Design is a whole industry and the prices out there have nothing to do, with SOME of the prices I've seen in some cases over here. The going rate for web design can vary greatly. It is entirely possible to find someone that will build you a website for $100. It is also possible to find someone that would charge you $10,000 to build that same site. Why is that? Why would the range of costs vary so much? Well, those rock bottom prices are typically from "designers" who:

  • are in high school, living in their parent's basement
  • have very little experience and even less expertise
  • create inferior products (and don't even know it!)
  • work in India, in a web design sweat shop

To be honest with you, here in Greece the prices are a BIT nicer, comparing to the outer world, and that's because some offices here don't even care about the latest and greatest technologies out there. They code in an old knowledge base that may still work but still, it's not the same nice nowadays technology. So the price for a SIMPLE STATIC (we'll get to that) website starts around 360€ (including one sub page).

 

So, prices differ from case to case, but you want to know the criteria before buying a website, don't you?

 

Criteria for a proper website

 

So, reaching this point you might wonder? Then why guy 'X' asks for like 50€ for a website? You guessed it right! He's not making something exceptional. He's just doing the stuff some guy taught him from youtube and it's all wrong. The result might look fantastic in your eyes but that's why you should know the following. There are many, many factors that contribute to a successful website, in the least it should:

  • be built according to web standards
  • work in all browsers (not everyone browses the web the same way)
  • be optimized for search engines; that is, your site actually appears in search results
  • be appealing to your target audience
  • utilize metrics to help you measure performance
  • accommodate new technologies

Can your low-end designer give you that? No, and they don't even know it.  But does that necessarily mean you have to spend a fortune on your website? Probably not, unless you are a corporation or enterprise level entity seeking to develop a large-scale, complex business platform. What would I do in your situation if I needed a website? I would shop around. Ask questions. If a designer won't answer questions, then move on...they either don't know the answer or don't think your questions are important. Gather information so you can make an informed decision...

 

What's about PSD's and RIP's?

 

Photoshop is a great tool. I'll call it ultimate tool for webdesigning and graphic design. The problem is, that Photoshop ISN'T a tool that can help in web DEVELOPMENT. Yeah, you heard it right. Photoshop is a tool for DESIGNING pages, not to code them.

 

You might have heard of the famous feature (most of the wannabe web-designers know it here) which is called "Save for Web & Devices". Actually this is a very neat feature of Photoshop. It's MEANT to be used in order to OPTIMIZE some images for the web. The whole "Slicing images" technique has nothing to do with exporting a generated HTML file from Photoshop. See, the slice refers to the procedure, where you go and take a piece of your website (like a background little piece or a button, or a photo) and you save it as a SEPARATE image to be used IN your CODING.

 

Yeah, I'm shouting with the caps, cause some guys are totally confused to that term. They use the slice tool, and then "Save for web & devices" and they have an html file with some image folder. Let me make it clear:

 

THIS, IS NOT WEB DESIGNING! Actually it is. DESIGN. It has nothing to do with coding. Photoshop, in short words, is generating a piece of HTML file using TABLES and for many many reasons (read 'em here), you don't want your site to be like that. If a designer claims to say he code it himself you can always look at the source code of the html file he gave to you.

 

ijhFzX6wJM1VZ.png

 

You see this "ImageReady Slices (l2mafia.psd)" green thingie there? That's a generated html comment that Photoshop puts (CS2, if I'm not wrong) and the so called "web designer" didn't even care to remove it. So, if someone is smart enough he might remove it, but again those nonsense 'images/spacer.gif' photoshop puts in the html code can easily be detected.

 

So, to conclude: THIS IS NOT HOW A PROPERLY DEVELOPED WEBSITE'S SOURCE SHOULD LOOK.

 

Now, riping is a term that is known here in maxcheaters. Unfortunately there are programs out there like HTTP Track Pro Ultimate Ever DOomedwh8(E@*)*@E crap that SHOULD be used to have some website back'ed up for offline reading, but at the end it's used in order to RIP someone's work. HTML files and CSS can always be ripped and there're no ways you can defend it. A thing that CAN'T be ripped is php and serverside code which is not the case for that topic.

 

So when buying a template, be sure to give it a proper copyright. Ambitious wannabe webdesigner DO put their name under a template and claim they "developed" it (right hahah), so don't get anxious about your existing website.

 

Static or Dynamic? (o.O)

 

HTML&CSS is a skill that every single web designer should have. Nowadays, when you ask for a template, you get the properly developed (remember? :P) html file with one or two css files, plus some image directory and javascript directory. That's it. That's a usual template directory structure. But what you can do with it?

 

Well, one way is to copy and paste a couple of times the index.html file, rename it and then populate each file with a different content. Yeah, that's a way, I agree, but this is the STATIC way of doing things. I mean, in case you don't know how to edit the HTML code, then you might ask it from your web designer and he might asks for more money. Designing a nicely crafted paragraph with an image (in case of a "news" page) is not that easy work to do, when don't know shit about HTML. That's why there's an other category of websites. The DYNAMICALLY populated websites.

 

Dynamic websites, usually come with an admin panel, which is a GUI in your browser, telling you what to edit and usually they have a preview button to see your result. They way they work? When you login to your admin panel (passwords and stuff should be given to you from the webdeveloper) you should see some buttons. Play with them, explore your panel (you may have been given some instructions, read 'em) and when you come up with a form like a textarea then the rest should be easy for you. You can easily add content to your website pretty much the way you would write in a word processor (like Word, Excel etc..).

 

As you probably have guessed, dynamic websites do COST more than static websites. It's clearly your decision and there's nothing better or worse. You should really care for dynamic website, when your content is refreshing or expanding rapidly...

 

Conclusion. Having questions?

 

You might be confused with all these. What I wanted to say is the following statement:

 

"You always get, what you pay for. It's your choice if you go for a cheap webdesign or a high-budget one. You should be sure, that if you pay more than regular, you'll get eventually something nicer than the others."

 

After all these kind of information, if you still have questions about webdesign & development, please consider posting a reply here. I won't reply to spam/trolling. Be nice and gentle if you need an answer, as I was. Thanks :)

 

Who is 'Blane' eventually?

 

Well, many of you (oldschool members) might know me. I was in the staff before a long time and now I'm just hanging over somewhere between off-topics and spam-topics. When I was asked for the co-operation I told in the first paragraph I was shocked of how young kids are unaware of the whole business industry of webdesign.

 

Besides that, I'm a webdesigner myself and I have been designing websites for almost 5 years now. I'm not that experienced, but I'm trying to be more "in-to" the things as the time goes by. I you're unhappy with my work, then please, don't judge the prices I ask. Almost every website you've seen from me here, is a REALLY low-budget website (~80-100€) and that's because none of you every tried to buy something better. I hope this topic enlightens you for your future websites (though I'm not forcing anyone to buy from me).

 

I just wanted to make things clearer. Now, you 'wannabe webdesingers', I have nothing against you. You should really follow this career because it's magical, adventurous and of course FUN. You just have to follow the new trends, trying to learn some coding (HTML&CSS) and try to craft a website from completely zero. My step-by-step tutorial might be handy for you, you can check it here.

 

Excuse me for any typos. Everything here is hand-written and it's copyrighted by myself. Hope you enjoyed! Best wishes,

Blane

  • 2 weeks later...
  • 2 months later...
  • 11 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Verify if following is supposed to be the way to handle movement npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(point.getX(), point.getY(), point.getZ())); For me, it's not enough. And if it's the case, whole AI system is probably buggy.
    • hello, i want to wtt my charracter in l2elmorelab 1x harbor for 1.5kkk adena in l2reborn 10x new. Or if you interested tell me your offer. :)) Clean Mail 30 lvl Cleric Naked   Updated.
    • package ai.npc.NFWalker; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Random; import l2r.gameserver.enums.CtrlIntention; import l2r.gameserver.model.Location; import l2r.gameserver.model.actor.L2Npc; import l2r.gameserver.model.quest.Quest; import l2r.gameserver.network.clientpackets.Say2; import l2r.gameserver.network.serverpackets.NpcSay; public class NFWalkerAI extends Quest { private static final int WALKER_NPC_ID = 20116; private final Map<String, Route> routes = new HashMap<>(); private final Map<Integer, Integer> npcIndexes = new HashMap<>(); private final Map<Integer, Boolean> npcReverse = new HashMap<>(); private final Map<Integer, String> npcCurrentRoute = new HashMap<>(); public NFWalkerAI() { super(-1, NFWalkerAI.class.getSimpleName(), "ai/npc/NFWalker"); loadRoutes(); addSpawnId(WALKER_NPC_ID); } private void loadRoutes() { // Route 1 Data Route route1 = new Route("route1"); route1.addPoint(new RoutePoint(0, 149363, 172341, -941, 0, false, "")); route1.addPoint(new RoutePoint(1, 148568, 172328, -980, 5, true, "Puff")); route1.addPoint(new RoutePoint(2, 148536, 172792, -980, 0, false, "")); // Route 2 Data Route route2 = new Route("route2"); route2.addPoint(new RoutePoint(0, 149363, 172341, -941, 0, false, "")); route2.addPoint(new RoutePoint(1, 150248, 172328, -980, 5, true, "Rise my children! Bring me the servants of the god! Let them be offered to our god Bifrons!")); route2.addPoint(new RoutePoint(2, 150248, 172776, -980, 0, false, "")); // Add routes to the map routes.put("route1", route1); routes.put("route2", route2); } @Override public String onSpawn(L2Npc npc) { if (npc.getId() == WALKER_NPC_ID) { selectInitialRouteForNpc(npc); } return super.onSpawn(npc); } @Override public String onAdvEvent(String event, L2Npc npc, l2r.gameserver.model.actor.instance.L2PcInstance player) { if (event.equalsIgnoreCase("move")) { moveNpc(npc); } else if (event.equalsIgnoreCase("check_reached")) { checkIfReached(npc); } return null; } private void moveNpc(L2Npc npc) { String routeName = npcCurrentRoute.get(npc.getObjectId()); Route route = routes.get(routeName); Integer pointIndex = npcIndexes.get(npc.getObjectId()); if (route != null && pointIndex != null) { RoutePoint point = route.getPoints().get(pointIndex); if (point.isRun()) { npc.setRunning(); } else { npc.setWalking(); } if (!point.getChat().isEmpty()) { npc.broadcastPacket(new NpcSay(npc.getObjectId(), Say2.NPC_ALL, npc.getId(), point.getChat())); } npc.getAI().setIntention(CtrlIntention.AI_INTENTION_MOVE_TO, new Location(point.getX(), point.getY(), point.getZ())); // Log movement intention System.out.println("NPC " + npc.getObjectId() + " moving to " + point.getX() + ", " + point.getY() + ", " + point.getZ()); // Schedule a check to see if the NPC has reached its destination startQuestTimer("check_reached", 1000, npc, null); } } private void checkIfReached(L2Npc npc) { String routeName = npcCurrentRoute.get(npc.getObjectId()); Route route = routes.get(routeName); Integer pointIndex = npcIndexes.get(npc.getObjectId()); if (route != null && pointIndex != null) { RoutePoint point = route.getPoints().get(pointIndex); Location currentLocation = npc.getLocation(); Location targetLocation = new Location(point.getX(), point.getY(), point.getZ()); // Check if the NPC has reached the target location if (currentLocation.equals(targetLocation)) { // Log that the NPC has reached the target System.out.println("NPC " + npc.getObjectId() + " reached target " + targetLocation); // Schedule the next movement startQuestTimer("move", point.getDelay() * 1000, npc, null); if (!npcReverse.get(npc.getObjectId())) { pointIndex++; if (pointIndex >= route.getPoints().size()) { npcReverse.put(npc.getObjectId(), true); pointIndex = route.getPoints().size() - 1; } } else { pointIndex--; if (pointIndex < 0) { npcReverse.put(npc.getObjectId(), false); pointIndex = 0; // Choose a new route after completing the current one in both directions switchRouteForNpc(npc); return; } } npcIndexes.put(npc.getObjectId(), pointIndex); } else { // Check again after 1 second startQuestTimer("check_reached", 1000, npc, null); } } } private void selectInitialRouteForNpc(L2Npc npc) { // Randomly select either route1 or route2 String selectedRouteName = "route" + (new Random().nextInt(2) + 1); npcCurrentRoute.put(npc.getObjectId(), selectedRouteName); npcIndexes.put(npc.getObjectId(), 0); npcReverse.put(npc.getObjectId(), false); startQuestTimer("move", 5000, npc, null); // Log initial route selection System.out.println("NPC " + npc.getObjectId() + " selected initial route " + selectedRouteName); } private void switchRouteForNpc(L2Npc npc) { String currentRoute = npcCurrentRoute.get(npc.getObjectId()); String newRoute = currentRoute.equals("route1") ? "route2" : "route1"; npcCurrentRoute.put(npc.getObjectId(), newRoute); npcIndexes.put(npc.getObjectId(), 0); npcReverse.put(npc.getObjectId(), false); startQuestTimer("move", 5000, npc, null); // Log route switching System.out.println("NPC " + npc.getObjectId() + " switched to route " + newRoute); } private static class Route { private List<RoutePoint> points = new ArrayList<>(); public Route(String name) { } public void addPoint(RoutePoint point) { points.add(point); } public List<RoutePoint> getPoints() { return points; } } private static class RoutePoint { private int id; private int x, y, z, delay; private boolean run; private String chat; public RoutePoint(int id, int x, int y, int z, int delay, boolean run, String chat) { this.id = id; this.x = x; this.y = y; this.z = z; this.delay = delay; this.run = run; this.chat = chat; } public int getId() { return id; } public int getX() { return x; } public int getY() { return y; } public int getZ() { return z; } public int getDelay() { return delay; } public boolean isRun() { return run; } public String getChat() { return chat; } } } I looking for help, with this, the npc not start to move. Im trying to create, an NPC wich have multiple walk routes basic logic is  random pick a route complite the route  like Route 1 start form zero (0 -> 1 -> 2(or more) -> 1 -> 0) When the npc return to 0, the script should pic the other route and start again.  And if there is a message like point 1 here     "route1.addPoint(new RoutePoint(1, 148568, 172328, -980, 5, true, "Puff"));" The npc should display the chat message. Currently my problem is the npc not moving, but if I manage it to start moving its randomly move between the route 1 and 2 set of coordinates. Currently for me its  a nightmare. I hope anyone can help somhow.
    • We are certainly not an ambulance, but we will definitely cure you of blacklists and empty pockets. Live freely with SX! Each of you will receive a trial version of SX to familiarize yourself with the product, all you have to do is post in this thread
  • Topics

×
×
  • Create New...