Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   a simple problem (https://forums.graalonline.com/forums/showthread.php?t=62097)

SyLaTAC 11-05-2005 11:27 PM

a simple problem
 
ok ive make a weapon in rc but how do i make it so that
ppl on the server can buy the weapon and then have it go to the inventory?
then how can i make it so that once you use it it dissapears?
please helpme

excaliber7388 11-06-2005 12:19 AM

have an NPC in the shop level that has addweapon weaponname in it. do not use toweapons and in the script of the weapon, put destroy at the end of the weaponfired part ex:
NPC Code:
if(weaponfired){
blahblahblah;
destroy;
}


:)

SyLaTAC 11-06-2005 12:50 AM

i did that but it still wont add it does it have to be serverside or clientside?

ZeLpH_MyStiK 11-06-2005 01:01 AM

Suggestion/Advice: Learn how to script

excaliber7388 11-06-2005 01:26 AM

serverside, just think, it is taking the information from the NC, which is part of the server, it cant add clientside, ecause the lpayer does not have that weapon, this is for adding the weapon, for the destroy part, this MUST be clientside (under the //#CLIENTSIDE line) as with the weaponfired

SyLaTAC 11-06-2005 03:11 AM

iam learning how to script my pizza shop is completely done and i did it before you both posted this massage cause i figured it out all by myself ;(D

Codein 11-06-2005 03:13 AM

Okay, I've decided. I'll help you out a little here and there.
Contact me on AIM : KanOfKoke

I'll help you through the problems you encounter, and in a way so I won't have to re-explain.


All times are GMT +2. The time now is 12:43 AM.

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