![]() |
replaceani walk,newgani;
Didn't you find that? |
Re: Triggeraction
Quote:
|
Re: Triggeraction
Quote:
|
Re: Re: Triggeraction
Quote:
Quote:
|
Read Stefan's post, here.
|
I think you should stop posting questions for every single script that you want to make.
|
Learn the basic first, what you're trying to script is pretty basic and you have troubles with it, so..
LEARN TO WALK BEFORE YOU TRY TO RUN. Okay? |
Since there are no real tutorials.
There is no way to learn. What stefan says makes perfect sense. If your on a playerworld and suddently the npc server crashes, the clientside scripts still run becouse it already sent them to you, but the client runs them. If you come on afterwords nothing happens at all, becouse it can't send them to you. |
Yes, osrs but I don't think he means that.. I think he means other weapons aswell as the current weapon? (I don't know if you can either way)...
|
That's hit points (HP) not weapons.. But It's good because it says the detection :)
|
It's not against the rules, it isn't exactly spamming.. But he could of put them all in one :-)
|
Quote:
|
Quote:
Quote:
|
Quote:
Yes, he can. |
Quote:
|
Yeah I edited if you see O.o!
|
Quote:
(Don't know spelling) |
Try fooling arround with Sin&Cos, then use some script to setfocus a part of the destination where the next mark would be, and leave it run around wild. :) Using setfocus, of course...
Erm... Wrong question answered. Make the topic more on topic: use TIMEOUT, and drunklevel --. I think that's it... Wavy Vision is expressed in first answer, decreasing of drunk level in other. |
Try using light effects :megaeek:
|
Quote:
When you do setimg then the npcserver is by default reading the beginning of the image (gif or png) to get the image size, and is automatically setting the shape size so playertouchsme etc. is working. That has been added 4 months ago. Also imgwidth(filename) and imgheight(filename) are working now on serverside. |
I had no clue on what commands might be used for a wavy vision effect, sorry for asking a question, i will no longer ask any questions. I will stay semi stupid on scripting.
|
This is related to a custom hp system that im tryin to make. For hit detection, if the other player is carrying an npc that has the hit detection script, if the player swings the npc sword, can it send a triggeraction to the x,y and if the player is on the xy and has the detection npc?
|
Thank you for your help stefan, I wish there were some guides that teach scripting in the way Accelerated C++ taught C++.
Pretty much it tells you what your trying to do, it gives you the code, and then it breaks it down to tell you what each command does. |
x-x just ask and ignore stupid answers
something like that would be good i guess (does wavy effect when someone touchs the npc) NPC Code: I have not tested this but it should work. Change the 'this.waveangle += 0.2' line to some other value to get different waving speed |
hopefully the last one! modifying player speed
The only way I know to modify the player's speed is to increase the x and y they move everytime they hit the arrow keys, im wondering if theres a flag or something that stores the playerspeed? Or some other way?
|
On Graal Classic you go walk weird when hit with a bowling ball ^^
I thought you ment drunk as in, you see flashes in front of your eyes, and stuff o.o;; |
Yes, that's the way it's used clientside :\
|
Quote:
|
No. You can use the level 3 shield as an increase in speed, otherwise you'd have to make your own movement system.
|
Quote:
|
Well hope the following helps, im going to go through trigonometry briefly:
In a unit circle (a circle with a radius of one), a point on the circles edge defined my an angle x has the coordinates (cos(x),sin(x)). If a larger circle is wanted, you multiply the coordinates by the number you want the radius to increase. I.E. if you want a circle with a radius of 5, the coordinate on the edge of the circle defined by angle x would be (5cos(x),5sin(x)). So the code should look something like this: NPC Code: |
Since it's a weapon hitobjects or hitplayer or hurt or something like that would be helpful heh? :D
|
Quote:
|
Quote:
|
Mining
I have made my pickaxe, but how do I detect if the player is hitting a certain tile ?
|
Actually, I would get a mining rock image, put it into an npc, have the weapon trigger the mining action, and have the rock npc detect the action, then do stuff.
But to answer your question, you would do NPC Code: That would make your chat text the tile that you are hitting with the axe. Then just check if that tile is the one you want. |
Go Duwul!
GMan, can you just CENTRALIZE all your questions? Or post them all in one area? You can have this: Pick Axe: NPC Code: NPC: NPC Code: |
Quote:
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 10:56 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.