Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Sever help needed. I ISM CONFUZLED!! (https://forums.graalonline.com/forums/showthread.php?t=37649)

Ace Venom 09-09-2002 11:00 AM

Sever help needed. I ISM CONFUZLED!!
 
1 Attachment(s)
hey, I am trying despratly to make a gem box where you fire the weapon, and it brings up an inventory type list (using pictures and not words) that shows how many gems and which ones you have in the box. here's what I have so far (in attachment) confused:
ps, if tyhm could help me. since youve always helped me before. that would be great. THANK YOU!!! :)

Falcor 09-09-2002 11:21 AM

I you wanted tyhm to help you, you could've PM-ed him.
And you really shouldn't use the forums as a "Lets get the scripters to debug my scripts" thing =\... If you have a question about certain commands or you can't figure out why a specific portion of your code won't work, THATS the time to post it and we will help with what we can. I'm too lazy to download your levels and look at them, narrow it down to a few lines of bugged code and maybe I, or someone else, can help.

R0b1n-NPC 09-09-2002 02:13 PM

Falados should so be a moderator :D

WanDaMan 09-09-2002 04:17 PM

Id help if i got a new moniter>.

CheeToS2 09-09-2002 05:00 PM

Quote:

Originally posted by Falcor
I'm too lazy
Quote:

Originally posted by R0b1n-NPC
Falados should so be a moderator :D
:confused:

WanDaMan 09-09-2002 05:04 PM

>.

Graal2001_NAT 09-09-2002 07:01 PM

and I thought I had seen some of the worst formatting a few weeks ago.......I was wrong

R0b1n-NPC 09-09-2002 10:39 PM

lol Jagen

osrs 09-10-2002 01:03 AM

Quote:

Originally posted by CheeToS2


:confused:

he is crazy

Falcor 09-10-2002 02:25 AM

Quote:

Originally posted by CheeToS2


:confused:

Scripters = Lazy
but it was more of a lack of motivation than laziness in itself. I'm not motivated to help those who have the gaul to ask people to debug their script and then have the indecency to post it as an attachment instead of the acual code.

Legondary_MyTH 09-10-2002 04:12 AM

wow
 
good point

Torankusu 09-10-2002 04:52 AM

it looks like
NPC Code:

if(timeout){
setstring client.itemselect, //<---
if(playerhasgem1){
showimg i,GEM3YEL.gif,x,y;},1,
if(playerhasgem2){
showimg i,GEM3GOLD.gif,x,y;
},1,if(playerhasgem3){
showimg i,GEM3RED.gif,x,y;},1,
if(playerhasgem4){
showimg i,GEM3PURP.gif,x,y;},1,
if(playerhasgem5){
showimg i,GEM3PINK.gif,x,y;},1,
if(playerhasgem6){
showimg i,GEM3BLAK.gif,x,y;
},1,if(playerhasgem7){showimg i,GEM3BL.gif,x,y;},1,if(playerhasgem8){showimg i,GEM3.gif,x,y;},1;
timeout=.05;}


is all screwed up. (note, it's not spaced like this, it's all on one line.)

emortylone 09-10-2002 05:11 AM

OMFG! x.X That IS so EBIL to look @ it :'( Jagen, you aren't referring to ME now are you????!!
---Shifter

Graal2001_NAT 09-10-2002 06:02 AM

Quote:

Originally posted by emortylone
OMFG! x.X That IS so EBIL to look @ it :'( Jagen, you aren't referring to ME now are you????!!
---Shifter

O=) you never know XD
but there are other people who bracket like you (like prozac)

emortylone 09-10-2002 07:43 AM

LOLz. I bracket just fine :P My scripts work though, and I find them easy enough to read :D
---Shifter

Ace Venom 09-10-2002 01:14 PM

ok, grumpy lazynesses.
 
1 Attachment(s)
ok, you grumpy people. I fixed the problem. I was having sever scripters block (possibly resulting from brain damage. LOL) I realized I was going about the script all wrong. here is the fixed script :D ... if anyone even cares... :(

NPC Code:

//based off of NPC made by bryan986
//NPC changed into current NPC by Ace Venom

//toweapons & settimeout
if (playerenters) {
toweapons Gembox;timeout=.05;}
//if fired:
if(weaponfired){
say2 You have these gems:#b
#s(gem1)#s(gem2)#s(gem3)#s(gem4)#b
#s(gem5)#s(gem6)#s(gem7)#s(gem8);
}
//if timeout:
if(timeout){

if(gotgem1){setstring gem1,#i(gem3.gif);}
if(!gotgem1){setstring gem1,#i(no-shield.gif);}
;
if(gotgem2){setstring gem2,#i(gem3bl.gif);}
if(!gotgem2){setstring gem2,#i(no-shield.gif);}
;
if(gotgem3){setstring gem3,#i(gem3blak.gif);}
if(!gotgem3){setstring gem3,#i(no-shield.gif);}
;
if(gotgem4){setstring gem4,#i(gem3gold.gif);}
if(!gotgem4){setstring gem4,#i(no-shield.gif);}
;
if(gotgem5){setstring gem5,#i(gem3pink.gif);}
if(!gotgem5){setstring gem5,#i(no-shield.gif);}
;
if(gotgem6){setstring gem6,#i(gem3purp.gif);}
if(!gotgem6){setstring gem6,#i(no-shield.gif);}
;
if(gotgem7){setstring gem7,#i(gem3red.gif);}
if(!gotgem7){setstring gem7,#i(no-shield.gif);}
;
if(gotgem8){setstring gem8,#i(gem3yel.gif);}
if(!gotgem8){setstring gem8,#i(no-shield.gif);}
;
timeout=.05;}



and if you want the whole thing... umm... I guess I'll attach it...

ps. I realize it's a long script. but I am currently trying to devise a shorter version of it. this is just what would be considered a rough draft. for all you picky evil people out there... you know who you are.

R0b1n-NPC 09-10-2002 02:17 PM

Ewwwwww

wtf is with the ; seperating the lines??

I will not be downloading that... and look neither has anyone else.

Quote:

Attachment: gemboxtest.zip
This has been downloaded 0 time(s).

BladeSpirit 09-22-2002 08:58 PM

Quote:

Amen


All times are GMT +2. The time now is 03:00 AM.

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