[code] Want To Marry Me ?

All Helbreath Server Source Discussion here.
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Well i had an Idea and i got from another game Argentum i dunno if someone knows that game i got the Marry CODE from that since we got the Clone-Client i had an idea ... to make an NPC that you talk to him and you write the name of the other player you want to Marry and a Window will show to him if he/she accepts or if he/she doesn't i can make the NPC Sprite and someone like diuuude,snoopy,cleroth can make the code to HGServer & Client, Heres the CODE from Argentum i know that they are Different Code Languages cuz Argentum is based on C and Helbreath on C++:

Code: Select all

If Left$(UCase$(rdata), 7) = "/MARRY " Then 
Dim UsuarioACasarse As String 
Dim tempIndex As Integer 
UsuarioACasarse = Right$(rdata, Len(rdata) - 7) 
tempIndex = NameIndex(UsuarioACasarse) 
If UsuarioACasarse = "" Then 
Call SendData(ToIndex, UserIndex, 0, "||You gotta write name of the person you want to marry." & FONTTYPE_INFO) 
Exit Sub 
End If 
If tempIndex < 1 Then 
Call SendData(ToIndex, UserIndex, 0, "||El usuario no esta Online o no existe." & FONTTYPE_INFO) 
Exit Sub 
End If 
If UserList(tempIndex).Genero = UserList(UserIndex).Genero Then 
Call SendData(ToIndex, UserIndex, 0, "||No hay casamientos GAY o de Lesbianas ¬¬" & FONTTYPE_INFO) 
Exit Sub 
End If 
If UserList(UserIndex).flags.Casado <> "" Then 
Call SendData(ToIndex, UserIndex, 0, "||Ya estas casado/a con alguien." & FONTTYPE_INFO) 
Exit Sub 
End If 
If UserList(tempIndex).flags.Casado <> "" Then 
Call SendData(ToIndex, UserIndex, 0, "||Ya esta casado/a con alguien." & FONTTYPE_INFO) 
Exit Sub 
End If 
If Distancia(UserList(UserIndex).Pos, UserList(tempIndex).Pos) > 5 Then 
Call SendData(ToIndex, UserIndex, 0, "||¡¡No puedes hacer casamientos de lejos!!." & FONTTYPE_INFO) 
Exit Sub 
End If 
If UserList(tempIndex).flags.Casandose <> "" And UserList(tempIndex).flags.Casandose <> UserList(UserIndex).Name Then 
Call SendData(ToIndex, UserIndex, 0, "||Its trying to marry another person ... Im sorry " & FONTTYPE_INFO) 
Exit Sub 
End If 
UserList(UserIndex).flags.Casandose = UserList(tempIndex).Name 

If UserList(tempIndex).flags.Casandose = UserList(UserIndex).Name Then 
UserList(tempIndex).flags.Casado = UserList(UserIndex).Name 
UserList(UserIndex).flags.Casado = UserList(tempIndex).Name 
UserList(UserIndex).flags.Casandose = "" 
UserList(tempIndex).flags.Casandose = "" 
Call SendData(ToAll, 0, 0, "TW" & SND_CREACIONCLAN) 
Call SendData(ToAll, 0, 0, "||¡¡¡" & UserList(UserIndex).Name & " Y " & UserList(tempIndex).Name & " They Married!!" & "~255~255~0~1~0") 
Else 
SendData ToIndex, tempIndex, 0, "||" & UserList(UserIndex).Name & " want to marry me, write /marry " & UserList(UserIndex).Name & " accepts the offer ?." & FONTTYPE_GUILD 
End If 
Debug.Print "Nice Marry" 
Exit Sub
Now the Divorce Code

Code: Select all

If UCase$(rdata) = "/DIVORCE" Then 
Dim nombredivor2 As String 
If UserList(UserIndex).flags.Casado = "" Then 
Call SendData(ToIndex, UserIndex, 0, "||¡¡You arent married.!!." & FONTTYPE_INFO) 
Exit Sub 
End If 
nombredivor2 = UserList(UserIndex).flags.Married 
If NameIndex(UserList(UserIndex).flags.Married) < 1 Then 
WriteVar App.Path & "Charfile" & UserList(UserIndex).flags.Casado & ".chr", "FLAGS", "Married", "0" 
UserList(UserIndex).flags.Married = "" 
Else 
UserList(NameIndex(UserList(UserIndex).flags.Casado)).flags.Casado = "" 
UserList(UserIndex).flags.Casado = "" 
End If 
Call SendData(ToAll, 0, 0, "TW" & 27) 
Call SendData(ToAll, 0, 0, "||¡¡¡" & UserList(UserIndex).Name & " Y " & nombredivor2 & " They Divorce!!''& "~255~255~0~1~0") 
Debug.Print "Nice divorce" 
Exit Sub 
End If
I put this codes so a Coder can get an Idea from this if he understands the two Languages
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

useless code but idea is cool. will work on it.
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Good than ... i will start the NPC
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
joeri
Member
Posts: 126
Joined: Sat Mar 04, 2006 1:19 am

Post by joeri »

drawjer is right
its a cool id but isnt it hard to code sumething like that ?
visit a cool site <a href='http://technohell.net' target='_blank'>here</a><br><br><img src='http://i5.photobucket.com/albums/y184/J ... hnoFan.jpg' border='0' alt='user posted image' /><br><img src='http://i5.photobucket.com/albums/y184/Joeri696/240.jpg' border='0' alt='user posted image' /><br><img src='http://i5.photobucket.com/albums/y184/Joeri696/255.jpg' border='0' alt='user posted image' /><br><img src='http://i5.photobucket.com/albums/y184/Joeri696/326.jpg' border='0' alt='user posted image' /><br><br>Diuuude fan :D<br>Go Diuuude Go :D
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

joeri wrote: drawjer is right
its a cool id but isnt it hard to code sumething like that ?
Say Thanks to Sr.Idea's I will post more and they will be better than ever.


DON'T WORRY BE HAPPY :D
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Audioslave
noob
Posts: 24
Joined: Sat Dec 25, 2004 2:40 pm

Post by Audioslave »

Argentum is not coded in C, is coded in Visual Basic.
Bye
locobans
Outpost Junkie
Posts: 2264
Joined: Tue Jul 13, 2004 3:51 am
Location: Behind You
Contact:

Post by locobans »

Audioslave wrote: Argentum is not coded in C, is coded in Visual Basic.
Bye
<3 AudioSlave

P.D: Saludame en msn puto!
QUOTE (ADDKiD @ Dec 1 2006, 4:01 PM) <br>You guys make me laugh alot, half the shit I say, is bullshit...<br><br><img src='http://img485.imageshack.us/img485/492/banssig1ng.gif' border='0' alt='user posted image' /><br><br><b>I see no changes at all, wake up in the morning and ask myself...<br>Is life worth living? Should I blast myself?</b><br><br><b><a href='http://2paclegacy.com' target='_blank'>2PacLegacy.com</a></b>
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Audioslave wrote: Argentum is not coded in C, is coded in Visual Basic.
Bye
:blink: It's ? hmm... i thought it was C :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

VB has the "IF ... THEN"
structure, C has the

if() dostuff;
or
if (){dostuff; andmorestuff;}

easy way to tell in just the first line of your snippet
-><-
Dax
&lt;3 bd long time
Posts: 785
Joined: Mon Apr 18, 2005 3:19 pm

Post by Dax »

Jensen wrote: VB has the "IF ... THEN"
Also why VB programmers make the best writers of pseudo code. The 2 are almost identical and just as pointless.
Reppin' 127.0.0.1!!!<br><br><img src='http://img502.imageshack.us/img502/1348/sig4daxbn2.jpg' border='0' alt='user posted image' /><br><br>I contend that we are both atheists. I just believe in one fewer god than you do. <br>When you understand why you dismiss all the other possible gods, you will <br>understand why I dismiss yours.<br>~ <b>Stephen Roberts</b>
Jensen
Loyal fan
Posts: 300
Joined: Tue Aug 02, 2005 7:40 am
Location: Illinois, USA
Contact:

Post by Jensen »

Dax wrote:Also why VB programmers make the best writers of pseudo code. The 2 are almost identical and just as pointless.
agreed, glad i started programming a year after my friends from highschool and they stoped teaching vb and started c++ that year

-><-
Drajwer
&lt;3 bd long time
Posts: 841
Joined: Fri Dec 10, 2004 3:24 pm

Post by Drajwer »

you make an "monk" to church, ppl will go to church click on 'guy in hat' and marry. then little ceremonion is settled on an hour and a little "if you want marry him/her say yes" then "you are married !" and mass celebration light will be nice ;)
<img src='http://img440.imageshack.us/img440/2627/15pt.jpg' border='0' alt='user posted image' /><br><br>HBPolska characters:<br><br>Hellios 150+ Aresden Hero Mage<br>TheBill 120 Aresden plrider<br>Kill_Me 100 Full-Hero plrider<br>Rockeater 110+ Aresden Plate Mage<br><br><a href='http://www.helbreath.org' target='_blank'>http://www.helbreath.org</a> come and play (250 ppl online)
€M4NU€L
Outpost bitch
Posts: 517
Joined: Sat Nov 19, 2005 9:07 pm
Location: I watch gay porn
Contact:

Post by €M4NU€L »

Drajwer wrote: you make an "monk" to church, ppl will go to church click on 'guy in hat' and marry. then little ceremonion is settled on an hour and a little "if you want marry him/her say yes" then "you are married !" and mass celebration light will be nice ;)
I'm almost finishing NPC its an old man with a wand in hand and it isnt Devlin its an NPC from DIABLO II :lol:
<span style='color:blue'>Helbreath Thermal</span> <span style='color:green'>BETA</span> <span style='color:red'>Soon</span>:<br><br>www.youporngay.com<br><br><img src='http://img264.imageshack.us/img264/1041 ... piopk7.jpg' border='0' alt='user posted image' /><br><img src='http://img257.imageshack.us/img257/3762 ... eakxj1.jpg' border='0' alt='user posted image' /><br><img src='http://arthur.crepin.free.fr/images/use ... mpsons.png' border='0' alt='user posted image' /><br><img src='http://img329.imageshack.us/img329/5797/pesgamerrr3.gif' border='0' alt='user posted image' /><br><br><u><b>BLACK GAY LIST:</b></u><br><br><span style='color:red'>€M4NU€L</span>:<br>I look like a girl and he's always complaining someone.
Hypnotoad
Member
Posts: 100
Joined: Wed Apr 28, 2004 8:16 pm

Post by Hypnotoad »

Well this can be a great idea eventually, on the year anniversary of the married couple, they can have a new .pak aura for the that whole day, and when the couple is together, in the same screen you can make them have a bonus such as DMG + 10 or whatever.

What is love other than seeing your loved one gang banged before your very eyes by 12 low level warriors with sabres criticalling.

It sounds like a great idea but somehow i feel like theres gotta be a "helbreath committee" to oversee all these

Code: Select all

 ideas to the client and hgserver to decide what should be official or not.  Or whats a good idea or whats not.
<img src='http://www.playah.no-ip.com/images/Hypn ... imated.gif' border='0' alt='user posted image' />
Tafka12
&lt;3 bd long time
Posts: 772
Joined: Wed Dec 28, 2005 6:32 pm

Post by Tafka12 »

Agreed!! Make it work now! :D



PS! Hypnotoad... Your signature almost made my eyes blind...
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
Post Reply