Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-09-2002, 11:00 AM
Ace Venom Ace Venom is offline
Registered User
Join Date: Jul 2002
Location: hell
Posts: 3
Ace Venom is on a distinguished road
Exclamation Sever help needed. I ISM CONFUZLED!!

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!!!
Attached Files
File Type: zip gemboxtest.zip (8.2 KB, 174 views)
__________________
-Ace Venom
Reply With Quote
  #2  
Old 09-09-2002, 11:21 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 09-09-2002, 02:13 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Falados should so be a moderator
__________________
- R0bin
Reply With Quote
  #4  
Old 09-09-2002, 04:17 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Unhappy

Id help if i got a new moniter>.
__________________
V$:CONFL16T
Reply With Quote
  #5  
Old 09-09-2002, 05:00 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by Falcor
I'm too lazy
Quote:
Originally posted by R0b1n-NPC
Falados should so be a moderator
__________________

Reply With Quote
  #6  
Old 09-09-2002, 05:04 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Wink

>.
__________________
V$:CONFL16T
Reply With Quote
  #7  
Old 09-09-2002, 07:01 PM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
and I thought I had seen some of the worst formatting a few weeks ago.......I was wrong
__________________
GONE, BAI
Reply With Quote
  #8  
Old 09-09-2002, 10:39 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
lol Jagen
__________________
- R0bin
Reply With Quote
  #9  
Old 09-10-2002, 01:03 AM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Quote:
Originally posted by CheeToS2


he is crazy
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #10  
Old 09-10-2002, 02:25 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally posted by CheeToS2


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.
__________________

subliminal message: 1+1=3
Reply With Quote
  #11  
Old 09-10-2002, 04:12 AM
Legondary_MyTH Legondary_MyTH is offline
Registered User
Join Date: May 2002
Location: Levelville
Posts: 420
Legondary_MyTH is on a distinguished road
wow

good point
__________________
ArchMage Amedeus Valoryn of Zormite
Manager of Anarchy
Past Jobs:
Levels Admin on Renegade
LAT on Doomsday,Babylon,G3K
Developer on Faheria,Babylon
GP on Sanstrata,G3K
Reply With Quote
  #12  
Old 09-10-2002, 04:52 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
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.)
__________________
Quote:
Originally posted by Spark910
Think befreo you type.
Reply With Quote
  #13  
Old 09-10-2002, 05:11 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
OMFG! x.X That IS so EBIL to look @ it :'( Jagen, you aren't referring to ME now are you????!!
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #14  
Old 09-10-2002, 06:02 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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)
__________________
GONE, BAI
Reply With Quote
  #15  
Old 09-10-2002, 07:43 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOLz. I bracket just fine :P My scripts work though, and I find them easy enough to read
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #16  
Old 09-10-2002, 01:14 PM
Ace Venom Ace Venom is offline
Registered User
Join Date: Jul 2002
Location: hell
Posts: 3
Ace Venom is on a distinguished road
ok, grumpy lazynesses.

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 ... 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.
Attached Files
File Type: zip gemboxtest.zip (10.4 KB, 129 views)
__________________
-Ace Venom
Reply With Quote
  #17  
Old 09-10-2002, 02:17 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
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).
__________________
- R0bin
Reply With Quote
  #18  
Old 09-22-2002, 08:58 PM
BladeSpirit BladeSpirit is offline
Registered User
Join Date: Sep 2002
Location: Over there ->
Posts: 22
BladeSpirit is on a distinguished road
Send a message via AIM to BladeSpirit
Quote:
Amen
__________________
If pro is the opposite of con:

Is Pro gress the opposite
of Con gress ?

Pro Stitution
Con Stitution
aim: cl0ud Drakken
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:52 PM.


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