![]() |
Bread Help
ok, i have this script, and i wanna make it so you can have more than one, and im getting new at this whole npc scripting with stuff like this.wahtever and stuff, can some one help me with this, i tried it but it doesn't work
NPC Code: |
ok Im gonna fix this, BUT I have to be able to use it on my server
ok? // NPC made by Urónd the Paladin if (playertouchsme) { toweapons Bread; this.Bcount = +1; } if (isweapon && Bcount<1) { destroy; } if (weaponfired && this.Bcount>1) { playerhearts+=2; this.Bcount -=1; } That should fix it and Im waiting for Kai, Rebel95 or possibly KJL to correct me -freaky- |
you should never put it up until he says ok
|
Quote:
|
Quote:
|
Hmm I didnt care lol
if (playertouchsme) { toweapons Bread; this.Bcount = +1; } if (weaponfired && this.Bcount>=1) { playerhearts+=2; this.Bcount =-1; } if (isweapon && Bcount<1) { destroy; } hmm maybe this..... someone correct me -freaky- |
ok, thanks for the help kamu (not sarcasim, im serious) but, i have know idea what you mean, so
NPC Code: will work? |
so i need
NPC Code: or NPC Code: |
ok
|
+=
not =+ |
ooh..
Hmm Im not too good with this.variables and strings... Kai, or anyone else, could you give me an example of how strings work with counts? ( like minerals in mining) Thanks -freaky- |
ok
setstring Bcount,strtofloat(#s(Bcount))+1; that is adding 1 setstring Bcount,strtofloat(#s(Bcount))-1; should work.. |
Thanks!
Thanks
Im just learning strings and this.variables I now understand them both ^_^ -Freaky- |
| All times are GMT +2. The time now is 05:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.