• 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!

Zaypay problem

zitubia

New Member
Joined
Sep 30, 2007
Messages
45
Reaction score
0
Hello guys.

Ive been trough all the php files and in the database.
But i cant find where i add so the money goes to my zaypay account.

and when i tried to click the donate by zaypay it tells me

Code:
The Price Setting doesn't provide this service in this specific country.
You may have to configure it not to, or it might not be available at all

But when i registered my zaypay account i could choose my country. (Sweden)

Thanks in advance
Zitubia
 
Its waiting approval, but can zaypay have sms/call service from sweden?
And how do i add paypal in the "buy points" page?

I can make it work if i change the index.php from buypoints.php to paypal.php
If i get the paypal thing to work. Do i have to accept payments by login in to me paypal account or can i configure it to accept payments automaticly from my site?
 
Its a paypal script here with auto points. Also when zaypay approved you can choose sweden and some more. But you need to have configure it right also.
 
I got paypal to work i just copied zaypay active script and changed to paypal.

But i have another small problem atm.
I have changed an item but it cant load it ( i just changed name from sapphire hammer to donator hammer.
The server console tells me
Code:
Opening and endtag mismatch: items line 2 and item


*edit*
Code:
<item id="7433" article="a" name="donator hammer"
<attribute key="weight" value="3100" />
<attribute key="defense" value="50" />
<attribute key="attack" value="80" />
<attribute key="weaponType" value="club" />
</item>

**edit2**
i found that i managed to but an </item> over the acual item when i cpoied it to the bottom of the file
 
Last edited:
I have a problem with my shop. I added 1000 points to my character from shopadmin but when i buy and accept.
It say
Code:
Item added!
Donator Boots added to player Test items (he will get this items after relog) for 5 premium points from your account.
Now you have 995 premium points.
But i dont get the item, just removes points
 
Last edited:
in globalevents.xml add this

Code:
     <globalevent name="shop" interval="30000" script="shop.lua"/>

Shop.lua
Code:
  -- ### CONFIG ###
-- message send to player by script "type" (types you can check in "global.lua")
SHOP_MSG_TYPE = 19
-- time (in seconds) between connections to SQL database by shop script
SQL_interval = 30
-- ### END OF CONFIG ###
function onThink(interval, lastExecution)
    local result_plr = db.getResult("SELECT * FROM z_ots_comunication WHERE `type` = 'login';")
    if(result_plr:getID() ~= -1) then
        while(true) do
            id = tonumber(result_plr:getDataInt("id"))
            action = tostring(result_plr:getDataString("action"))
            delete = tonumber(result_plr:getDataInt("delete_it"))
            cid = getCreatureByName(tostring(result_plr:getDataString("name")))
            if isPlayer(cid) == TRUE then
                local itemtogive_id = tonumber(result_plr:getDataInt("param1"))
                local itemtogive_count = tonumber(result_plr:getDataInt("param2"))
                local container_id = tonumber(result_plr:getDataInt("param3"))
                local container_count = tonumber(result_plr:getDataInt("param4"))
                local add_item_type = tostring(result_plr:getDataString("param5"))
                local add_item_name = tostring(result_plr:getDataString("param6"))
                local received_item = 0
                local full_weight = 0
                if add_item_type == 'container' then
                    full_weight = getItemWeightById(itemtogive_id, 1)
                end
                local free_cap = getPlayerFreeCap(cid)
                if full_weight <= free_cap then
                    if add_item_type == 'container' then
                        local new_container = doCreateItemEx(container_id, 1)
                        local iter = 0
                        while iter ~= container_count do
                            doAddContainerItem(new_container, itemtogive_id, itemtogive_count)
                            iter = iter + 1
                        end
                        received_item = doPlayerAddItemEx(cid, new_container)
                    else
                        local new_item = doCreateItemEx(itemtogive_id, itemtogive_count)
                        received_item = doPlayerAddItemEx(cid, new_item)
                    end
                    if received_item == RETURNVALUE_NOERROR then
                        doPlayerSendTextMessage(cid, SHOP_MSG_TYPE, 'You received >> '.. add_item_name ..' << from OTS shop.')
                        db.executeQuery("DELETE FROM `z_ots_comunication` WHERE `id` = " .. id .. ";")
                        db.executeQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")
                                                doPlayerSave(cid)
                    end
                end
            end
            if not(result_plr:next()) then
                break
            end
        end
        result_plr:free()
    end
    return TRUE
end
 
Its added now it works as it sould. But i have another problem now.
I cant get promoted by king tibianus. tried everything, tried to change the scripting. nothing works.

with node1 script in modules he just say "blablabla 20000 bronze coints blablabla" when i say yes nothing happens.
In the original script he wont promote. he just replies "You are already promoted"
Even tried to manualy add promotion trough phpmyadmin when i login i can see "You are an Elite Knight" but the server crashes when i attack something.
after relog im no voc at all just ''.
 
Last edited:
i added a promotion talkaction and after i use !promotion i get to become an elite knight. then after a few secods the sql servers CPU is going nuts 35 CPU and the server freezes. And need to restart.

I use UniServer.
I would love to use wamp but when i change the username root and make a password i cant connect to phpmyadmin
 
i added a promotion talkaction and after i use !promotion i get to become an elite knight. then after a few secods the sql servers CPU is going nuts 35 CPU and the server freezes. And need to restart.

I use UniServer.
I would love to use wamp but when i change the username root and make a password i cant connect to phpmyadmin

Is everything good in Vocations.xml?
 
Its added now it works as it sould. But i have another problem now.
I cant get promoted by king tibianus. tried everything, tried to change the scripting. nothing works.

with node1 script in modules he just say "blablabla 20000 bronze coints blablabla" when i say yes nothing happens.
In the original script he wont promote. he just replies "You are already promoted"
Even tried to manualy add promotion trough phpmyadmin when i login i can see "You are an Elite Knight" but the server crashes when i attack something.
after relog im no voc at all just ''.


Maybe you alreade promoted when creating the character? maybe that's why he says "you are already promoted". On my server the players starts with promotion ^^
 
Maybe you alreade promoted when creating the character? maybe that's why he says "you are already promoted". On my server the players starts with promotion ^^
I remember that my original Vocation.xml had only the promotion vocations and the epic promotion. But i changed and added knight, druid,sorc and pally and changed name on the epic. how do i change so they are not promoted? Because in the players database they are set as promoted 0.
 

Similar threads

Back
Top