![]() |
weapon not working
this is a big script, and I'm haiving trouble finding it's problems. Since i'm not posting the full script, assume that all variables and strings are accounted for. The problem is, when I click, nothing happens, and the target doesn't follow the mouse.
NPC Code:if(weaponfired && playermp>(20-strtofloat(#s(clientr.divine_skill)))) |
Read your other threads please.
Do not confuse events with booleans. keypressed is an event. weaponfired is an event. this.var == 1 is a boolean. playermp > 20 is a boolean. |
I simplified it a bit. When you fire the weapon, the character freezes, clicking and A do nothing, and the fire appears, but does not follow
NPC Code: |
Read my post -.-
Quote:
|
got it, but now i have a new problem: this part doesn't work
NPC Code:for(this.i=0;this.i<this.c+1;this.i++) |
We do not know what those variables are, please clarify.
|
At a quick glance, you should not be using this.x and this.y as variables, especially if you intend on having the new engine enabled some day.
|
Quote:
this.x and this.y are the coordinates of the showimg this.playerx and this.playery are the players coordinates when the weapon is fired this.mousex and this.mousey are the coordinates of the mouse when the weapon is fired |
Quote:
Yes, ran into many problems with that. They are reserved. |
Quote:
|
Here's the entire block this is working from
NPC Code:if(mousedown && this.inuse==1 && leftmousebutton) |
Now another problem you have is that you're now trying to set your mouse coordinates with:
mousex=this.mousex; mousey=this.mousey; which is not possible. |
wow brain fart.
Anyway, the images dont work though, they're messed up, and don't point in the right directions |
Then there's something wrong with the execution of this script. I suggest you run through this script once by hand and see where it isn't doing what you want it to do.
|
fixed the above, here's the next problem. They don't always point in the right direction
(for the changeimgpart: 24,0 is up 34,68 is down 0,34 is left 68,34 is right) NPC Code:if(this.px>this.mousex-2 && this.px<this.mousex+4 && this.py>this.mousey) |
I'm getting tired of this. We're not here to create/fix your npc for you. Use some logic.
|
Quote:
|
You should learn GS2.
It's not as hard as you may think. |
Quote:
|
It is no wonder we have no other proficient scripters here
everyone just huddles into their own little world and stays there -.- |
Quote:
|
Quote:
|
Quote:
I have watched him post a few times about problems, and i re-read this thread and saw how he is posting here. I guess if you dont help someone they wont ever get better. I apologize if i came off a bit wrong (which i guess i did). |
Quote:
|
god
many people said this now GET SCRIPTERS they will help you to quickly get your scripts online |
Quote:
|
Quote:
As stated above, and from my own experience, and the repeated experience of many others of I have talked to : people with any kind of development talent (or even a complete lack of talent) go and buy a playerworld and either do nothing with it, or the sit and develop it. And when those who do not have as much skill as they thought they had realise that they need help, they post and mass pm and try their darndest to recruit staff, but 99 times out of 100 the people with any skill worth showing in puclic already works on another server, or own their own server, so even if you hire them, they may only make a couple, if any, npcs (same goes for lat's and levels, or gani or graphic artists) before becoming inactive and leaving you to make your still-in-the-works server by yourself. On one occasion, someone offered to pay me money to make an npc for them - literally hiring me to make something for their server. I emailed them a working first draft of the script, and then never got paid ... but it was only for a few bucks anyways. The average playerworld owner pays enough (some would say too much) out of their own pocket, and spending more money to literally hire people and have to pay them by level or by npc produced is like having each server be its own little company, since buying people's skills in this way, to make a graal playerworld, is just about the only way to make sure you have quality people on your team. But who would invest that kind of money where the line is crossed - that your playerworld becomes your business, right away you want a monetary return on your invenstment. I have heard zero positive feedback from anyone on the referral program - getting money for people buying accounts through your affiliate link - so basically the playerworld becomes a black hole sucking in your time and money for some fun - but not as much fun as it would be if people would help you out just for the fun of it - which, for the above reasons, has become increasingly rare these days. Old days : limited hosted public playerworlds (sanstrata, dino valley, elven lands etc) + paying customers seeing a few working features = people practically begging to help out Now : the people who helped out and learned a few things but not enough to run their own server + ability to rent out a server slot and post pretty much whatever you want on there = everyone who has any talent and ability to help you, won't help you, because they want their precious levels and npcs to be on just their server, and they spend what free time they have on their server .. .. and that = a lot of playerworlds that are average at best, or very good levels but average npcs, or very good npcs or average levels, or in the dozen or less elite group of ultra gifted individuals, a very small amount of good playerworlds ... an inverse bell curve, if you will. one solution to easing frustration off of paying customers: have graal pay the global scripting team money to go and actually help servers at various stages of development, teaching people to script. Leveling is easier, but still just as if not more time consuming. this is just part of how graal player culture has gone downhill .. also getting a corporate sponsor may help the game too. gametap maybe? |
Quote:
|
We are working on better documentation and script examples, also working systems you can use for new servers. That should probably help with setting up an interesting invironment?
|
Quote:
|
| All times are GMT +2. The time now is 04:14 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.