• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Shop System Full! [Modern AAC]

Yes, in this script can clone items. When you order a crystal coin in shop, and you have crystal coin in backpack, items was clone. help fix plz
 
Yes, in this script can clone items. When you order a crystal coin in shop, and you have crystal coin in backpack, items was clone. help fix plz

find
PHP:
if isContainer(getPlayerSlotItem(cid, 3).uid) then
										received = doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id,count)
										if received then
											doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system")
in shop.lua and replace with
PHP:
if isContainer(getPlayerSlotItem(cid, 3).uid) then
										    doAddContainerItem(getPlayerSlotItem(cid, 3).uid, id, count)
										if doAddContainerItem then
											doPlayerSendTextMessage(cid,19, "You have received >> "..productn.." << from our shop system")
No more duping with this method. No more spamming of "you don't have enough space..."

The problem is if you already have some of these items in your bp then the "count" doesn't register properly and the way it was coded threw an error which doesn't register that the player had recieved the item. Therefor the player will keep recieveing until the "count" was met. Having it changed to register that the player actually recieved the item instead of a "count" seems to have fixed this error but there is several more errors that concern me. I'll post more when I find a solution to avoid spread of abuse.
 
And if I want to allow people to set the max of 2 spaces in the names? :x

you can't :O

Nothing is impossible. This is to allow 1 space inbetween names.
Change..
PHP:
if (!preg_match('/[^A-Za-z]/', $_POST['other_char'])) {

to
PHP:
if (!preg_match('/[a-zA-Z]+" "[a-zA-Z]+/', $_POST['other_char'])) {

Untested but logically should work. Say if you wanted 2 spaces inbetween names then this should work...
PHP:
if (!preg_match('/[a-zA-Z]+" "[a-zA-Z]+" "[a-zA-Z]+/', $_POST['other_char'])) {
 
help mee :c my webpage hasnt a buypoints or shop offer buttons,! WHYYYYYYYYY?? and how can i add them!! plz :3 help me
PD: im using uniserver not xamp
 
Hey guys, how i can put when you receive an item from the shop list, the item have a special description, like: It belong to (getcreaturename)
:p
 
how can i fix this error?

A PHP Error was encountered
Severity: Warning

Message: include(gifts/gifts.php) [function.include]: failed to open stream: No such file or directory

Filename: pages/gifts.php

Line Number: 2

A PHP Error was encountered
Severity: Warning

Message: include() [function.include]: Failed opening 'gifts/gifts.php' for inclusion (include_path='.;C:\xampp\php\PEAR')

Filename: pages/gifts.php

Line Number: 2
 
A PHP Error was encountered
Severity: Warning

Message: include(gifts/gifts.php) [function.include]: failed to open stream: No such file or directory

Filename: pages/gifts.php

Line Number: 2

A PHP Error was encountered
Severity: Warning

Message: include() [function.include]: Failed opening 'gifts/gifts.php' for inclusion (include_path='.;C:\xampp\php\PEAR')

Filename: pages/gifts.php

Line Number: 2

why odes it say tht on http://myURL//index.php/p/v/gifts/admin/add/1
 
I'm trying to install this but i cannot. im confused about what it means in the instructions. it says "Loguear con una cuenta de administrador en la web y entrar a la siguiente ruta: http://TUURL/p/v/gifts". What does it mean login to the web with administrator account? go to xampp admin login? go to the actually acc page? i did http://localhost/p/v/giftsanyway, its says "object not found!" can someone explain this step to me please?
 
I'm trying to install this but i cannot. im confused about what it means in the instructions. it says "Loguear con una cuenta de administrador en la web y entrar a la siguiente ruta: http://TUURL/p/v/gifts". What does it mean login to the web with administrator account? go to xampp admin login? go to the actually acc page? i did http://localhost/p/v/giftsanyway, its says "object not found!" can someone explain this step to me please?

You have to make an account on your Modern AAC and change the page access id to 6 and sign in and then go to http://yoursite/p/v/gifts and it will automaticly install it for you. Except i cannot get the paypal to work. :/
 
how to change page access to 6? in the config.php right? i did that and still having the same problem. object not found
 
how to change page access to 6? in the config.php right? i did that and still having the same problem. object not found

In your database go to account > find your account > then there should be something about page access change it to 6. :D
 
Back
Top