[RELASE]İtem Remover

11/06/2013 15:17 IGotPower#1
Hello Epvp !

TR:
Arkadaşlar kusura bakmayın ingilizcem bu konuyu anlatacak kadar iyi değil !
ENG:
I'm sorry my friends. because my english is not good enough to tell this thread. I'm sorry.

Gelelim kullanımına:

Bu quest yere atılamayan ve envanterinizde gereksiz yere yer kaplayan itemleri silmeye yarıyor.

itemremover.lua
PHP Code:
quest itemsilici begin
    state start begin
    
        when xxx
.take with item.get_id() begin
            kod 
item.get_vnum()
            
say_title("Item silici")
                       
say("Demek item silmek istiyorsun.")
            
say_item_vnum(kod)
            
say("Tamam, "..item.get_name().." esyasini senin icin siliyorum.")
            
local s select("Sil","Kalsin")
            if 
== 1 then
                pc
.remove_item(kod)
            elseif 
== 2 then
                
return
            
end
        end
        
                when xxx
.chat."Nasil item silebilirim?" begin
            say_title
("Item silici")
            
say("Merhabalar envanterinizde gereksiz yer kaplayan")
            
say("esyalari silmek icin bana gelebilirsin..")
            
say("Sadece itemi ustume surukle!")
        
end
        
    end
end 
In English:

PHP Code:
quest item_remover begin
    state start begin
        when 20092.take with item
.get_id() begin
            code 
item.get_vnum()
            
say_title("Item Remover")
            
say("Do you want to delete this item ?")
            
say_item_vnum(code)
            
say("Ok, I will remove "..item.get_name().." for you.")
            
local s select("Yes","Delete All","No")
            if 
== 1 then
            pc
.remove_item(code)
            elseif 
== 2 then
            pc
.remove_item(codepc.count_item(code))
            
end
            end
            when 20092.chat
."How can i delete a item?" begin
            say_title
("Item Remover")
            
say("Hello !")
            
say("If you delete a item you can")
            
say("take it on me !")
        
end    
    end
end 
New Version - Thanks Sphinx

PHP Code:
quest item_remover begin
    state start begin
        when 20092.take with item
.get_id() begin
            code 
item.get_vnum()
            
say_title("Item Remover")
            
say("Do you want to delete this item ?")
            
say_item_vnum(code)
            
say("Ok, I will remove "..item.get_name().." for you.")
            
local s select("Yes","Delete All","No")
            if 
== 1 then
            item
.remove(code)
            elseif 
== 2 then
            item
.remove(codepc.count_item(code))
            
end
            end
            when 20092.chat
."How can i delete a item?" begin
            say_title
("Item Remover")
            
say("Hello !")
            
say("If you delete a item you can")
            
say("take it on me !")
        
end    
    end
end 
11/06/2013 15:22 [The]Domco#2
useless
11/06/2013 15:24 IGotPower#3
why useless ?
11/06/2013 15:31 DaDrag0n#4
when xxx.take with item.get_vnum() begin
pc.remove_item()

easyer..
11/06/2013 15:33 IGotPower#5
Quote:
Originally Posted by DaDrag0n View Post
when xxx.take with item.get_vnum() begin
pc.remove_item()

easyer..
sen bilirsin kardeşim ben bundan herkes faydalansın diye koydum buraya beğenmediysen kullanmazsın sorun yok.
11/06/2013 17:56 Chikyou#6
Quote:
Originally Posted by DaDrag0n View Post
when xxx.take with item.get_vnum() begin
pc.remove_item()

easyer..
That's what he used, the pc.remove_item function. I guess you're talking about item.remove().
11/06/2013 19:17 Sphinx²#7
What is when you have 2 items with the same VNUM.
You have to use item.remove().

Sphinx
11/06/2013 20:52 ~Ok#8
ya çocuk bir siktir git mal mal konuşma buraası ingilizce ve almanca forum triplere girme.

En :

gtfo here, there is only english and germany language allowed.
11/06/2013 22:22 DaDrag0n#9
Quote:
Originally Posted by Chikyou View Post
That's what he used, the pc.remove_item function. I guess you're talking about item.remove().
yea, my bad. was item.remove()
11/07/2013 15:01 IGotPower#10
Arkadaşlar benim triplere girdiğim falan yok sadece bu forumu türk forumlarından daha iyi ve yakın görüyorum. Bu yüzden paylaştıklarımı beğenmediyseniz beğenmediğinizi düzgün bir lisanla ifade ediniz.
11/07/2013 15:44 ~Ok#11
Quote:
Originally Posted by IGotPower View Post
Arkadaşlar benim triplere girdiğim falan yok sadece bu forumu türk forumlarından daha iyi ve yakın görüyorum. Bu yüzden paylaştıklarımı beğenmediyseniz beğenmediğinizi düzgün bir lisanla ifade ediniz.
Adadmım forumun kuralları sadace ingilizce ve almanca kabul ediyor uymasan eğer banlanırsın ona göre ayık ol cacık olma yane ;)

En :

Dude this forum only allowed english and deutsch language.And EPvP have rules, you dont care this you got banned.


sorry for my english.
11/08/2013 18:06 IGotPower#12
~Ok Teşekkür ederim ingilizcemi geliştirmek için çalışıyorum.

en:

Thank you. ı work to improve my english.
11/09/2013 20:48 anooos#13
thank you , but if i have 2 items with same code this quest wil remove one of them randomly!
i think this form is best :

PHP Code:
quest item_remover begin
    state start begin
        when 20092.take with item
.get_id() begin
            code 
item.get_vnum()
            
say_title("Item Remover")
            
say("Do you want to delete this item ?")
            
say_item_vnum(code)
            
say("Ok, I will remove "..item.get_name().." for you.")
            
local s select("Yes","Delete All","No")
            if 
== 1 then
            item
.remove()   ---this form will remove the taken item only ! :)
            elseif 
== 2 then
            item
.remove(codepc.count_item(code))
            
end
            end
            when 20092.chat
."How can i delete a item?" begin
            say_title
("Item Remover")
            
say("Hello !")
            
say("If you delete a item you can")
            
say("take it on me !")
        
end    
    end
end 
11/10/2013 15:19 IGotPower#14
Thanks anooos
09/22/2014 01:59 yassineland#15
when 20092.take begin
item.remove()
end