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-28-2001, 05:35 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Unhappy Stand help....

Okay I've been trying to make a selling stand like there is on 2001. I'm having problems taking the persons item and putting it in front of them. I deleted my old script on trying to do it because there was way to many errors. Here's what I've done so far.

// NPC made by Josey Hunt
if (playerenters&&this.bought=0){message Buy this stand for 100 gralat and sell your items!;}
if (playerenters&&this.bought=1){message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=0&&100>itemprice&&playerrupees >=99&&!playerrupees<=99){
playerrupees-=100;this.bought=1;setstring server.standowner,#n;message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=1){
message #s(server.standowner) already owns this stand!;}




Not much I know, but could someone give me a push in the righ direction?
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #2  
Old 09-28-2001, 06:24 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
=/ sorry bud.
__________________

-=Shard IceFire=-
Reply With Quote
  #3  
Old 09-28-2001, 06:30 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: Stand help....

Quote:
Originally posted by joseyisleet
Okay I've been trying to make a selling stand like there is on 2001. I'm having problems taking the persons item and putting it in front of them. I deleted my old script on trying to do it because there was way to many errors. Here's what I've done so far.

// NPC made by Josey Hunt
if (playerenters&&this.bought=0){message Buy this stand for 100 gralat and sell your items!;}
if (playerenters&&this.bought=1){message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=0&&100>itemprice&&playerrupees >=99&&!playerrupees<=99){
playerrupees-=100;this.bought=1;setstring server.standowner,#n;message #s(server.standowner) owns this stand.;}
if (playerchats&&strequals(#c,Buy stand)&&this.bought=1){
message #s(server.standowner) already owns this stand!;}




Not much I know, but could someone give me a push in the righ direction?
first of all:
NPC Code:

if (playerchats&&strequals(#c,Buy stand) && this.bought=0 && playerrupees>=100&&) {
playerrupees-=100;
this.bought=1;
setstring server.standowner,#n;
message #s(server.standowner) owns this stand.;
}
There was no need for that '!playerrupees<=99'
if (playerchats && strequals(#c,Buy stand) && this.bought=1){
message #s(server.standowner) already owns this stand!;
}
That may work just add the two together ..

Reply With Quote
  #4  
Old 09-28-2001, 06:54 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
i wasn't talking about help on that part of the script. i was wondering if someone could give me a good shove to the right direction on taking the players item that he says and placing it in front of him with a certain price and if another player says buy itemname they buy it for the price and the player that is selling the stuff gets the money.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #5  
Old 09-28-2001, 08:09 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by joseyisleet
i wasn't talking about help on that part of the script. i was wondering if someone could give me a good shove to the right direction on taking the players item that he says and placing it in front of him with a certain price and if another player says buy itemname they buy it for the price and the player that is selling the stuff gets the money.
putnpc2
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #6  
Old 09-28-2001, 08:12 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
do u think that would really work??
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #7  
Old 09-28-2001, 08:17 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
I would be positive that it would work, except for the fact that most of my time is spent scripting for non-p2p stuff, so I've never actually tried it
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #8  
Old 09-28-2001, 08:21 AM
Speedoflight14 Speedoflight14 is offline
Registered User
Join Date: Apr 2001
Posts: 72
Speedoflight14 is on a distinguished road
o:o
__________________
Everyone is human.
Nobodys perfect
Reply With Quote
  #9  
Old 09-28-2001, 08:30 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
try it with
putnpc putthescriptintxt,x,y;
and look for something to takeaway the item from u
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #10  
Old 09-28-2001, 08:34 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by fireball_dolphonia
try it with
putnpc putthescriptintxt,x,y;
and look for something to takeaway the item from u
*tries to think of a command nastier than putnpc*
*fondly remembers the days before the nttf when almost anything with putnpc in it got rejected immediately*
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #11  
Old 09-28-2001, 09:56 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
hmm.

hmm
i guess it would work. oh well ill figure it out.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
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:50 AM.


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