Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sword display (https://forums.graalonline.com/forums/showthread.php?t=61748)

excaliber7388 10-15-2005 05:10 PM

Sword display
 
I've created a new gui for DR, the only thing it's missing (other than a better-looking backround ;)) is an image of the sword the player is using, is there a way to show this, without modifying sprites, using showstats, or #1? And while I'm on the topic of swords, what command would be used to take away the functionality of swords? EX, you can see the sword slash, but it does no damage, and leaves bushed untouched. lol...while I'm on the topic of bushes, what command other than takeplayercarry could be responcible for the fact that no one can carry anything, they throw it immediatly. I've checked my scripts (a lot x_x), and i can't find where the problems started from. Just need the possible commands or set of cammands to fix these problems, thanks!

prozac424242 10-15-2005 05:35 PM

to have the S key not do any damage to bushes or anything
set the player sword power to zero

excaliber7388 10-15-2005 06:40 PM

No, it already doesn't do damage, and the sword power is not 0 x_X and nothing can be carried, (auto thrown) and how would i get that gfx of the players sword, without #1 (if possible)

Knuckles 10-15-2005 06:40 PM

disableweapons();
and rescript the entire system ;).

ZeLpH_MyStiK 10-15-2005 07:23 PM

Hmm let's see, you want to show the image of the sword for a GUI...I wonder...
The filename of the sword the player is currently using is #1
And I want to show the sword image...hmm
showimg index,#1,x,y;
maybe?
But I don't want to show the entire image, just part of it...so i guess i would
use changeimgpart index,x,y,width,height;

Lance 10-15-2005 09:19 PM

Quote:

Originally Posted by excaliber7388
No, it already doesn't do damage, and the sword power is not 0 x_X and nothing can be carried, (auto thrown) and how would i get that gfx of the players sword, without #1 (if possible)

Why wouldn't you want to use #1?

excaliber7388 10-16-2005 06:13 PM

I was hoping for an easy way XD #1 it is! =p I know the changeimgpart crap, but that changes the height and width in a sinsle direction, it would be hard to crop the rest of the image down to what I need

ZeLpH_MyStiK 10-16-2005 07:07 PM

Quote:

Originally Posted by excaliber7388
I was hoping for an easy way XD #1 it is! =p I know the changeimgpart crap, but that changes the height and width in a sinsle direction, it would be hard to crop the rest of the image down to what I need

what?

Lance 10-16-2005 07:35 PM

Quote:

Originally Posted by excaliber7388
I was hoping for an easy way XD #1 it is! =p I know the changeimgpart crap, but that changes the height and width in a sinsle direction, it would be hard to crop the rest of the image down to what I need

Don't worry; it isn't too hard.


All times are GMT +2. The time now is 12:08 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.