Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - checho_vacan

Pages: [1]
1
Items / Re: Help with my Item: Soul Eater
« on: December 20, 2006, 11:15:00 pm »
Nup.... just nothing happend XD

2
Items / Re: Item: Egg your victims avatar
« on: December 20, 2006, 12:36:10 pm »
Thanks a lot!! you are my god! =P

3
Items / Re: Help with my Item: Soul Eater
« on: December 19, 2006, 04:09:22 am »
Thanks!... but it doesn't nothing now :(

4
Items / Re: Karmageddon
« on: December 14, 2006, 11:52:24 pm »
Thanks... cool item, works perfect n_n

5
Items / Help with my Item: Soul Eater
« on: December 14, 2006, 11:50:28 pm »
Hi, im noob on this... so i want to make some items... i had like 3 now n_n

This item it's called "Soul Eater" (aka Chupasangre)

the code is very simple, but i want to implement a little more of code


What i does?

- Steal 15 Karma point to a user and give it to you (>=D)
- you need to use 30 extra gold when use it

My problem is that if the user have 0 gold, still can use the item ¬¬.... please some one fix this :D

chupasangre.php
Code: [Select]
<?php
/**********************************************\
| SMFSHOP (Shop MOD for Simple Machines Forum) |
|         (c) 2006 DanSoft Australia           |
|      http://www.dansoftaustralia.net/        |
\**********************************************/

//File: testitem.php
//      Test Item (requires NO input)

// VERSION: 2.3 (Build 11)
// $Date: 2006-10-21 13:34:18 +1000 (Sat, 21 Oct 2006) $
// $Id: testitem.php 24 2006-10-21 03:34:18Z daniel15 $

// Your class should always be called item_filename, eg. if your file is 
// myCoolItem.php then the class should be called 'item_myCoolItem'. This 
// class should always extend itemTemplate.
class item_chupasangre extends itemTemplate {

// When this function is called, you should set all the item's
// variables (see inside this example)
function getItemDetails() {

// The author's name
$this->authorName "Checho";
// The author's website
$this->authorWeb "http://www.foro-qliao.cl.nu/";
// The author's email address
$this->authorEmail "chechovacan@gmail.com";

//VALUES CHANGEABLE FROM WITHIN ADMIN PANEL:
// The name of the item
$this->name "Chupasangre";
// The item's description
$this->desc "Este item te permite robar cosmo y agregarlo al tuyo";
// The item's price
$this->price 100000;
   }

    function 
getUseInput() {
global $context$scripturl$settings$txt;
        return 
"Nombre de usuario: <input type='text' name='username' />
        <a href='
{$scripturl}?action=findmember;input=username;quote=0;sesc={$context['session_id']}' onclick='return reqWin(this.href, 350, 400);'><img src='{$settings['images_url']}/icons/assist.gif' border='0' alt='{$txt['find_members']}' /> Burcar</a><br />";
   
}
    function 
onUse() {
        global 
$db_prefix$ID_MEMBER$item_info;
        if (!isset(
$_POST['username']) || $_POST['username'] == '') die("ERROR: Debes ingresar un nombre de usuario!");
    
//    if (!isset($ID_MEMBER == '(money < 30)') die("Debes tener almenos 30 de oro para usar este item");

$result db_query("UPDATE {$db_prefix}members
                                SET karmaGood = karmaGood + 15, money = money - 30
WHERE ID_MEMBER = 
{$ID_MEMBER}"__FILE____LINE__);

        
$result db_query("UPDATE {$db_prefix}members
                            SET karmaBad = karmaBad + 15
                            WHERE memberName = '
{$_POST['username']}'",
                            
__FILE____LINE__);
         return 
"Le haz robado 15 puntos de cosmo a {$_POST['username']}!";
    }

}

?>


6
Items / Re: Item: Egg your victims avatar
« on: December 11, 2006, 11:34:27 pm »
OMG!!! you are good!!... :)

... but it still tellme that "Egg is an unknown filetype" thing...

It's ok... :( im really want to make some kind of interactive avatars with this really cool addon....
and... i want to "modify" this "avatar base" and "buy" stuff for him... :D


The picture of mine was an uploaded avatar... but my "avatar base" its in the avatar place...


I hope you can helpme ;) thanks

PD: My english sux :P

7
Items / Re: Item: Egg your victims avatar
« on: December 11, 2006, 12:27:28 pm »
Thanks for reply!... sorry if i offend you... ok, this is my avatar
http://foroqliao.ifastnet.com/foro/attachments/avatar_1.png
and is me XD

Maybe its because i dont have an .htacess file?
how i made one?

... greetings! :D

8
Items / Re: Item: Egg your victims avatar
« on: December 10, 2006, 11:41:00 pm »
No one?!... theres if no support for this items system?.... :( bad luck

9
Installation Problems / Re: Language file
« on: December 10, 2006, 11:38:43 pm »
XD... weird!.... but if its working.... thats ok :P

10
Items / Re: Item: Egg your victims avatar
« on: December 10, 2006, 12:36:40 pm »
Hi.. im getting the same error.... just a white screen and
"Egg is an unknown filetype"

What can it be???

Really cool mod, i want to made my owns item and make some interactives avatars, like GaiaOnline

11
Installation Problems / Re: Hi there!... problems with Egg user avatar!
« on: December 09, 2006, 12:56:52 pm »
Ok... i see another's post... looks like the same problem... thanks... ;)

12
Installation Problems / Re: Language file
« on: December 09, 2006, 10:19:54 am »
You can rename the Shop.english.php to your language and translate it... or replace it later

PD: My english sux XD

13
Installation Problems / Hi there!... problems with Egg user avatar!
« on: December 08, 2006, 10:24:01 pm »
Hi, im a little noob... im trying to use this cool items in my shop, but when y configures the item, i buy it and all... then im tryingo to use it and justo appears a white screen whit tis

"Egg is an unknown filetype"

Why?....

PD: My english is very bad... im using this in a spanish smf forum... thanks!

Pages: [1]