Shop Example Script

Learn more on how to use Sandbox, or submit your own tutorials or resources.
User avatar
johnno56
Member
Member
Posts: 158
Joined: June 12th, 2009, 4:06 am
Name: John
Location: Melbourne, Australia
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby johnno56 » June 18th, 2009, 1:11 am

GoBologna120,

Please correct me if I am wrong.

Maybe you could use the following to detect no money?

if ( < $money 1 ) guitext "Sorry. You have no money."

Just a guess...

J
May your journey be free of incident.

Live long and prosper.

User avatar
GoBologna120
Member
Member
Posts: 167
Joined: June 10th, 2009, 3:07 pm
Name: Tim
IRC Username: GoBologna
Location: Nowhere in particular.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby GoBologna120 » June 18th, 2009, 6:56 pm

Well, the shopkeeper usually only tells you if you don't have enough money. I'd think you'd know if you were broke. :lol:
Image
Yay. ^_^

User avatar
slyver1988
Member
Member
Posts: 10
Joined: June 25th, 2009, 5:16 pm
Name: patrick
Contact:

Re: Shop Example Script

Postby slyver1988 » June 26th, 2009, 4:03 pm

hey help me i wanna try things out... but were i put this scrips?? :shock:
srry i dont use scripts much xD
i putted it in my .CFG but i only see the invitory :)
how i get shopkeeper and text ^^
---->folow my project at it will be great and i keep you up to date with all new adds<----

User avatar
GoBologna120
Member
Member
Posts: 167
Joined: June 10th, 2009, 3:07 pm
Name: Tim
IRC Username: GoBologna
Location: Nowhere in particular.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby GoBologna120 » June 26th, 2009, 4:31 pm

The coins must be set to level_trigger_1 and the shopkeeper must be set to level_trigger_2. Also, the coin is trigger type 12 and the shopkeep is type 11.
Image
Yay. ^_^

Doctor
Member
Member
Posts: 1
Joined: July 19th, 2009, 2:03 am
Name: Brendan
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby Doctor » July 19th, 2009, 2:31 am


Mama's Boy
Member
Member
Posts: 25
Joined: June 22nd, 2009, 7:10 pm
Name: Jacob DeBoer
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby Mama's Boy » August 17th, 2009, 8:34 am


OrbitalRider
Member
Member
Posts: 3
Joined: September 18th, 2009, 10:26 pm
Name: Shane
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby OrbitalRider » September 20th, 2009, 11:58 pm


bradels
Member
Member
Posts: 4
Joined: November 9th, 2009, 9:43 pm
Name: brad hill
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby bradels » November 11th, 2009, 12:22 am

Last edited by Obsidian on November 11th, 2009, 1:09 am, edited 1 time in total.
Reason: merged double post -- in the future, please just edit your post

User avatar
Creatorrookie
Member
Member
Posts: 66
Joined: September 22nd, 2009, 8:35 pm
Name: John
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Shop Example Script

Postby Creatorrookie » January 3rd, 2010, 4:14 pm

Does the shop script work in the sandbox rpg and 2.4?
The rookie in sandbox... :)

User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: Shop Example Script

Postby GR1M » January 3rd, 2010, 7:52 pm

Yes it does.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Tutorials and Resources”

Who is online

Users browsing this forum: No registered users and 5 guests