fodev.net
FOnline Development => General Discussion => Topic started by: ronon dex on June 21, 2012, 01:32:43 pm
-
What is a script for buying a base? could someone help me with this?
-
Faction/bases is a 2238 feature. I'm not sure if SDK has something similar :?
-
http://forum.newfmc.pl/index.php?topic=222.0
-
Hello,
This Script from the site above works.
Though how to change
if (pid==PID_PRZEDMIOTU)
to multiple amounts?
would this be?
if (pid==PID_PRZEDMIOTU, 4 () )
Thanks
-
Hello,
This Script from the site above works.
Though how to change
if (pid==PID_PRZEDMIOTU)
to multiple amounts?
would this be?
if (pid==PID_PRZEDMIOTU, 4 () )
Thanks
You mean how to make it work for a few different item PIDs?
if( pid == PID_SOME_PID || pid == PID_SOME_OTHER_PID )
which means: if pid is equal to PID_SOME_PID or PID_SOME_OTHER_PID
or
if( pid >= PID_SOME_PID_RANGE_START && pid <= PID_SOME_PID_RANGE_END )
which means: if pid is in a range from PID_SOME_PID_RANGE_START to PID_SOME_PID_RANGE_END
Of course you have to use existing (defined) pid names,or just numbers.
-
Hello,
It wouldnt make too much sense in using multiple items, I mean, how are you going to do that inside of inventory?
what i meant was to have multiples of the same pid, such as 5 ropes .
-
Inside critter_use_item function I think this should work:
if( pid == PID_ROPE && item.GetCount() >= 5 )
But I'm not sure what you try to achieve...
-
Im trying to achieve so instead of using just one instance of rope to create a tent, you would need 10 ropes.
-
try this:
if( pid == PID_ROPE && item.GetCount() >= 10 ) {
//...code...
cr.DeleteItem(pid,10)
}
-
Nice, thanks a lot!!