Jump to content

Elvio Zobovic

Resident
  • Posts

    11
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi there, I am working on a system that stores info into a database. I've got a lot working already, it's basically a custom currency with points. Now what I did to check if the user purchase was valid is change the status code in the php: //Set points before sale to variable $beforePoints = $row['points']; $afterPoints = $beforePoints - $price; //Start Update Query if($beforePoints >= $price) { http_response_code(200); $query = "UPDATE `users` SET `points` = (`points`-".$price.") WHERE `uuid` = '".$avatar_key."' AND points > 0"; echo "You paid ". $price ." points. You have " . $afterPoints . " points left."; } else { http_response_code(402); echo("Not Enough! This item costs ". $price ." Points. You have: " . $beforePoints . " Points."); die(); }So then in the LSL I check the response code to see if the user made the purchase or not to give the item. //tell us what was returned. if(status = 402) { llSay(0, body); return; } if(status = 200) { llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_OBJECT,0)); llSay(0, body); return; } }So, everything works just fine but one thing. It never gives the inventory item. What am I doing wrong here? Thanks in advance, Brian
  2. Ahh, that makes sense. Thank you for your time replying!
  3. Hi, Could anyone help me out with this? I have no clue what I'm doing wrong here but SL keeps giving me a syntax error. integer now = (integer)llGetWallclock(); integer minutes = (now / 60) % 60; integer hours = now / 3600; default { state_entry() { llSetTimerEvent(5); } timer() { if (hours == 1) { } if (hours == 2) { } if (hours == 3) { } if (hours == 4) { } if (hours == 5) { } if (hours == 6) { } if (hours == 7) { } if (hours == 8) { } if (hours == 9) { } if (hours == 10) { } if (hours == 11) { } if (hours == 12 || hours == 00) { } if (mins == 13) { } if (mins == 28) { } if (mins == 43) { } if (mins == 58) { llSetTexture("41ae3187-3220-62df-00db-7f149bcc2d62",2); } } } ERROR: (4, 14) : ERROR : Syntaxt error That is right where the '(' starts of '(integer)llGetWallclock();' Thanks all help appreciated!
  4. Hi there, I won't be using 3 of my regions anymore and would like to rent them out. The regions are; - Zobovic Realms - Virtually Magic & Virtually Dreams (These are next to eachother but can be moved apart free of charge) Names are also changeable. The price will be: L$ 19,000/wk - Per Sim If you are interested and would like more information, please contact me either here by replying or in-game.
  5. Hello, Zobovic Estates currently has two crossover regions for rent. These two regions can be found under the name Virtually Magic & Virtually Dreams, at the follwing location; http://maps.secondlife.com/secondlife/Virtually%20Magic/130/110/33 We have put these regions for sale, for just L$30,000/wk. There are NO hidden fees, the price will stay the same even after four weeks. If you are interested in renting these two regions, or just one. Please contact me in-game; Elvio Zobovic Have a nice day, Zobovic Estates Management Elvio Zobovic
  6. 2 Regions w/ Crossover | L$30,000/wk - No hidden fees. Hello, My name is Elvio Zobovic from the old Zobovic Estates. We currently have 2 sims (Next to eachother) availbile for rent. Would you like 2 regions that are next to eachother? Look no further! This is the most cheap price you'll probably find and... It's real! There's no hidden fees or anything, it's L$30,000 a week. The region names are: Virtually Magic & Virtually Dreams. http://maps.secondlife.com/secondlife/Virtually%20Magic/224/56/37 The map might still show objects on-site but they are cleared. You will get estate ownership of both regions and have permission to make it G|M|A. Contact me if you're interested or need more information.
  7. Hello, There has been a update in price. Rent is L$16000/week (No other special payments or things.) The region re-naming will cost 50$ as Linden Labs only does this for that price.
  8. Hello, I currently have 5 regions of which there is one I do not use. I want to rent this region for just L$16000/wk. You will get the Estate Ownership of this region and if you want you can re-name it for a 50$ one time fee. (Current name is 'Zobovic Realms') I have had an estate company in the past but due to many other projects I stopped this. And I'm not setting one up for just one region so, I decided to throw this here. If you are interested contact me here or in-game trough IM.
  9. Hey, So I have this script for the donation boxes on my land; integer totaldonated; string owner; default { on_rez( integer sparam ) { llResetScript(); } state_entry() { owner = llKey2Name( llGetOwner() ); llSetText( owner + "'s donation hat.\nDonate if you are so inclined!\n$0 Donated so far",<1,1,1>,1); } money(key id, integer amount) { totaldonated+=amount; llSetText( owner + "'s donation hat.\nDonate if you are so inclined!\n$" + (string)amount + " Donated so far",<1,1,1>,1); llInstantMessage(id,"Thanks for the tip!"); llInstantMessage(owner,llKey2Name(id)+" donated $" + (string)amount); } However I would like to have them all connect to 1 server and the server telling me the total amount of money donated. So the boxes have to tell the server how much there is donated and then the server adds the amount to the total. I've been trying a lot and can't seem to get it to work.
  10. Hey, I am currently looking for a full sim. Going to start on a new project and hope I can get one trough this way. Please contact on this topic. Sincerely, Brian Elvio
×
×
  • Create New...