Jump to content
  • 0

Show sale with balloon(shop) in npc


Question

6 answers to this question

Recommended Posts

  • 0
Posted

Wrong section. Moved to "Source Support".

 

try this

prontera,150,150,4	script	Shop	861,{

OnVendingClick:

callshop( "rathena", 1 );
end;

OnInit:
showvend( "Shop", 1, "rAthena" );
end;
}

-	shop	rathena	-1,512:-1

 

ShowVend.zip

  • Like 1
  • 0
Posted (edited)

 

I downloaded tortoiseSVN, but I do not know how to use ? ,  

---------------Detectar idiomaAfricânerAlbanêsAlemãoAmáricoÁrabeArmênioAzerbaijanoBascoBengaliBielorrussoBirmanêsBósnioBúlgaroCanarimCatalãoCazaqueCebuanoChinês (simplificado)Chinês (tradicional)CingalêsCoreanoCorsoCroataCurdoDinamarquêsEslovacoEslovenoEspanholEsperantoEstonianoFilipinoFinlandêsFrancêsFrísio ocidentalGaélico escocêsGalegoGalêsGeorgianoGregoGuzerateHaitianoHauçáHavaianoHebraicoHíndiHmongHolandêsHúngaroIgboIídicheIndonésioInglêsIorubáIrlandêsIslandêsItalianoJaponêsJavanêsKhmerLaosianoLatimLetãoLituanoLuxemburguêsMacedônioMalaialaMalaioMalgaxeMaltêsMaoriMaratiMongolNepalêsNianjaNorueguêsPanjabiPashtoPersaPolonêsPortuguêsQuirguizRomenoRussoSamoanoSérvioSindiSomaliSoto do sulSuaíliSuecoSundanêsTadjiqueTailandêsTâmilTchecoTélugoTurcoUcranianoUrduUzbequeVietnamitaXhosaXonaZuluPortuguês
 
 
I can do it manually? , in the current rathena the files are in .hpp and .cpp, can I change the showvend to this?

12.png

 

its not working .-.

resolved, can close this topic

Edited by Unless boy
  • 0
Posted (edited)
8 hours ago, Cyro said:

try this


prontera,150,150,4	script	Shop	861,{

OnVendingClick:

callshop( "rathena", 1 );
end;

OnInit:
showvend( "Shop", 1, "rAthena" );
end;
}

-	shop	rathena	-1,512:-1

 

ShowVend.zip

Errors fixed while compiling:

Script.cpp

clif_showvendingboard( &nd->bl, buf, 0 );

Change to:

clif_showvendingboard( &nd->bl, (const char*)buf, 0 );

Vendings.cpp

	if( nd_sd->subtype == CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == SCRIPT ) { //Trigger OnVendingClick event

Change to:

	if( nd_sd->subtype == NPCTYPE_CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == NPCTYPE_SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == NPCTYPE_SCRIPT ) { //Trigger OnVendingClick event

 

Edited by Popcorn
  • Upvote 1
  • MVP 2
  • Like 1
  • 0
Posted
On 3/13/2018 at 8:17 AM, Haikenz said:

Errors fixed while compiling:

Script.cpp


clif_showvendingboard( &nd->bl, buf, 0 );

Change to:


clif_showvendingboard( &nd->bl, (const char*)buf, 0 );

Vendings.cpp


	if( nd_sd->subtype == CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == SCRIPT ) { //Trigger OnVendingClick event

Change to:


	if( nd_sd->subtype == NPCTYPE_CASHSHOP ) //Act as if it was clicked
		npc_click( sd, nd_sd );
	if( nd_sd->subtype == NPCTYPE_SHOP ) //Open Buy-Windows directly
		npc_buysellsel( sd, nd_sd->bl.id, 0 );
	if( nd_sd->subtype == NPCTYPE_SCRIPT ) { //Trigger OnVendingClick event

 

It's works fine 

Thank you ^^

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...